fix keycard redundant screen (#13922)

This commit is contained in:
Parvesh Monu 2022-09-07 15:24:33 +05:30 committed by GitHub
parent 8b01a4ac6c
commit d7bbe1ceec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 54 additions and 52 deletions

View File

@ -6,6 +6,7 @@
[status-im.ui.components.react :as react] [status-im.ui.components.react :as react]
[status-im.ui.components.icons.icons :as icons] [status-im.ui.components.icons.icons :as icons]
[status-im.i18n.i18n :as i18n] [status-im.i18n.i18n :as i18n]
[status-im.utils.handlers :refer [<sub]]
[status-im.react-native.resources :as resources] [status-im.react-native.resources :as resources]
[status-im.ui.components.tooltip.views :as tooltip] [status-im.ui.components.tooltip.views :as tooltip]
[status-im.ui.components.topbar :as topbar] [status-im.ui.components.topbar :as topbar]
@ -264,11 +265,12 @@
:after :main-icon/next} :after :main-icon/next}
(i18n/label :t/confirm)]}]]])) (i18n/label :t/confirm)]}]]]))
(defview recovery-phrase-confirm-word [] (defn recovery-phrase-confirm-word []
(letsubs [word [:keycard-recovery-phrase-word] (let [word (<sub [:keycard-recovery-phrase-word])]
input-word [:keycard-recovery-phrase-input-word] (fn []
error [:keycard-recovery-phrase-confirm-error]] (let [input-word (<sub [:keycard-recovery-phrase-input-word])
(let [{:keys [idx]} word] error (<sub [:keycard-recovery-phrase-confirm-error])
{:keys [idx]} word]
[react/keyboard-avoiding-view {:style styles/container [react/keyboard-avoiding-view {:style styles/container
:ignore-offset true} :ignore-offset true}
[topbar/topbar [topbar/topbar
@ -316,4 +318,4 @@
:disabled (empty? input-word) :disabled (empty? input-word)
:type :secondary :type :secondary
:after :main-icon/next} :after :main-icon/next}
(i18n/label :t/next)]}]]]))) (i18n/label :t/next)]}]]]))))