File tree 4 files changed +5
-15
lines changed
4 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 15
15
:description :text
16
16
:description-text (i18n/label :t/scan-previous-keycard )}]
17
17
[rn/view {:style {:flex 1 }}]
18
- [rn/view {:padding-horizontal 20 }
18
+ [rn/view {:style { : padding-horizontal 20 } }
19
19
[quo/button {:on-press events-helper/navigate-back}
20
20
(i18n/label :t/try-again )]]])
21
21
Original file line number Diff line number Diff line change 47
47
:description :text
48
48
:description-text (i18n/label :t/keycard-empty-ready )}]
49
49
[rn/view {:style {:flex 1 }}]
50
- [rn/view {:padding-horizontal 20 }
50
+ [rn/view {:style { : padding-horizontal 20 } }
51
51
[quo/button {:on-press events-helper/navigate-back}
52
52
(i18n/label :t/done )]]])
53
53
60
60
[quo/page-top
61
61
{:title (i18n/label :t/keycard-reset-failed )}]
62
62
[rn/view {:style {:flex 1 }}]
63
- [rn/view {:padding-horizontal 20 }
63
+ [rn/view {:style { : padding-horizontal 20 } }
64
64
[quo/button {:on-press events-helper/navigate-back}
65
65
(i18n/label :t/try-again )]]])
66
66
Original file line number Diff line number Diff line change 19
19
[rn/image
20
20
{:resize-mode :contain
21
21
:source (resources/get-image :not-keycard )}]]
22
- [rn/view {:padding-horizontal 20 }
22
+ [rn/view {:style { : padding-horizontal 20 } }
23
23
[quo/button {:on-press events-helper/navigate-back}
24
24
(i18n/label :t/try-again )]]])
Original file line number Diff line number Diff line change 30
30
:style style/keycard-owner-name}
31
31
profile-name]]]])
32
32
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
-
43
33
(defn registered-keycards
44
34
[]
45
35
(let [keycards (rf/sub [:keycard/registered-keycards ])]
65
55
[quo/bottom-actions
66
56
{:actions :one-action
67
57
: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 ]) }}]]))
69
59
70
60
(defn view
71
61
[]
You can’t perform that action at this time.
0 commit comments