mirror of
https://github.com/status-im/status-react.git
synced 2025-02-17 05:16:46 +00:00
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.icons.icons :as icons]
|
||||
[status-im.i18n.i18n :as i18n]
|
||||
[status-im.utils.handlers :refer [<sub]]
|
||||
[status-im.react-native.resources :as resources]
|
||||
[status-im.ui.components.tooltip.views :as tooltip]
|
||||
[status-im.ui.components.topbar :as topbar]
|
||||
@ -264,11 +265,12 @@
|
||||
:after :main-icon/next}
|
||||
(i18n/label :t/confirm)]}]]]))
|
||||
|
||||
(defview recovery-phrase-confirm-word []
|
||||
(letsubs [word [:keycard-recovery-phrase-word]
|
||||
input-word [:keycard-recovery-phrase-input-word]
|
||||
error [:keycard-recovery-phrase-confirm-error]]
|
||||
(let [{:keys [idx]} word]
|
||||
(defn recovery-phrase-confirm-word []
|
||||
(let [word (<sub [:keycard-recovery-phrase-word])]
|
||||
(fn []
|
||||
(let [input-word (<sub [:keycard-recovery-phrase-input-word])
|
||||
error (<sub [:keycard-recovery-phrase-confirm-error])
|
||||
{:keys [idx]} word]
|
||||
[react/keyboard-avoiding-view {:style styles/container
|
||||
:ignore-offset true}
|
||||
[topbar/topbar
|
||||
@ -316,4 +318,4 @@
|
||||
:disabled (empty? input-word)
|
||||
:type :secondary
|
||||
:after :main-icon/next}
|
||||
(i18n/label :t/next)]}]]])))
|
||||
(i18n/label :t/next)]}]]]))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user