fix keycard redundant screen (#13922)
This commit is contained in:
parent
8b01a4ac6c
commit
d7bbe1ceec
|
@ -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)]}]]]))))
|
||||||
|
|
Loading…
Reference in New Issue