Skip to content

Commit 1b6bf2e

Browse files
committed
code review
1 parent 477e712 commit 1b6bf2e

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

src/status_im/contexts/keycard/different_card/view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
:description :text
1616
:description-text (i18n/label :t/scan-previous-keycard)}]
1717
[rn/view {:style {:flex 1}}]
18-
[rn/view {:padding-horizontal 20}
18+
[rn/view {:style {:padding-horizontal 20}}
1919
[quo/button {:on-press events-helper/navigate-back}
2020
(i18n/label :t/try-again)]]])
2121

src/status_im/contexts/keycard/factory_reset/view.cljs

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
:description :text
4848
:description-text (i18n/label :t/keycard-empty-ready)}]
4949
[rn/view {:style {:flex 1}}]
50-
[rn/view {:padding-horizontal 20}
50+
[rn/view {:style {:padding-horizontal 20}}
5151
[quo/button {:on-press events-helper/navigate-back}
5252
(i18n/label :t/done)]]])
5353

@@ -60,7 +60,7 @@
6060
[quo/page-top
6161
{:title (i18n/label :t/keycard-reset-failed)}]
6262
[rn/view {:style {:flex 1}}]
63-
[rn/view {:padding-horizontal 20}
63+
[rn/view {:style {:padding-horizontal 20}}
6464
[quo/button {:on-press events-helper/navigate-back}
6565
(i18n/label :t/try-again)]]])
6666

src/status_im/contexts/keycard/not_keycard/view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
[rn/image
2020
{:resize-mode :contain
2121
:source (resources/get-image :not-keycard)}]]
22-
[rn/view {:padding-horizontal 20}
22+
[rn/view {:style {:padding-horizontal 20}}
2323
[quo/button {:on-press events-helper/navigate-back}
2424
(i18n/label :t/try-again)]]])

src/status_im/contexts/settings/keycard/view.cljs

+1-11
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,6 @@
3030
:style style/keycard-owner-name}
3131
profile-name]]]])
3232

33-
(defn- check-keycard
34-
[]
35-
(rf/dispatch
36-
[:keycard/connect
37-
{:on-error
38-
(fn [error]
39-
(if (= error :keycard/error.keycard-wrong-profile)
40-
(rf/dispatch [:keycard/on-application-info-error error])
41-
(rf/dispatch [:keycard/on-application-info-error error])))}]))
42-
4333
(defn registered-keycards
4434
[]
4535
(let [keycards (rf/sub [:keycard/registered-keycards])]
@@ -65,7 +55,7 @@
6555
[quo/bottom-actions
6656
{:actions :one-action
6757
:button-one-label (i18n/label :t/ready-to-scan)
68-
:button-one-props {:on-press check-keycard}}]]))
58+
:button-one-props {:on-press #(rf/dispatch [:keycard/connect])}}]]))
6959

7060
(defn view
7161
[]

0 commit comments

Comments
 (0)