keycard confirm seed phrase screen remove back button (#13934)

This commit is contained in:
Parvesh Monu 2022-09-06 18:55:37 +05:30 committed by GitHub
parent d4b7e5c8b6
commit 2909014e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 13 deletions

View File

@ -128,13 +128,6 @@
(assoc-in [:keycard :recovery-phrase :input-word] nil)
(assoc-in [:keycard :setup-step] :recovery-phrase-confirm-word2))})
(fx/defn recovery-phrase-confirm-word-back-pressed
{:events [:keycard.onboarding.recovery-phrase-confirm-word.ui/back-pressed]}
[{:keys [db] :as cofx}]
(if (= (:view-id db) :keycard-onboarding-recovery-phrase-confirm-word1)
(navigation/navigate-to-cofx cofx :keycard-onboarding-recovery-phrase nil)
(navigation/navigate-to-cofx cofx :keycard-onboarding-recovery-phrase-confirm-word1 nil)))
(fx/defn proceed-with-generating-key
[{:keys [db] :as cofx}]
(let [pin (get-in db [:keycard :secrets :pin]

View File

@ -310,12 +310,7 @@
:width 250}
[tooltip/tooltip error]]]
[bottom-toolbar/toolbar
{:left
[quo/button {:on-press #(re-frame/dispatch [:keycard.onboarding.recovery-phrase-confirm-word.ui/back-pressed])
:type :secondary
:before :main-icon/back}
(i18n/label :t/back)]
:right
{:right
[quo/button {:on-press #(re-frame/dispatch [:keycard.onboarding.recovery-phrase-confirm-word.ui/next-pressed])
:accessibility-label :next
:disabled (empty? input-word)