From 488d59a44808259160c4fa34ccd01d2fb348973d Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Thu, 7 May 2020 10:20:47 +0200 Subject: [PATCH] [#10494] Tapping on "Back up your seed phrase" from wallet doesn't open back up seed phrase flor Signed-off-by: Andrey Shovkoplyas --- src/status_im/ui/screens/wallet/accounts/sheets.cljs | 3 ++- src/status_im/ui/screens/wallet/accounts/views.cljs | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/status_im/ui/screens/wallet/accounts/sheets.cljs b/src/status_im/ui/screens/wallet/accounts/sheets.cljs index a5dd58756d..912980f28a 100644 --- a/src/status_im/ui/screens/wallet/accounts/sheets.cljs +++ b/src/status_im/ui/screens/wallet/accounts/sheets.cljs @@ -37,7 +37,8 @@ :icon :main-icons/security :accessibility-label :wallet-backup-recovery-title :on-press #(hide-sheet-and-dispatch - [:navigate-to :backup-seed])}])])) + [:navigate-to :profile-stack {:screen :backup-seed + :initial false}])}])])) (defn send-receive [account type] [react/view diff --git a/src/status_im/ui/screens/wallet/accounts/views.cljs b/src/status_im/ui/screens/wallet/accounts/views.cljs index 67196ea1b2..533e6c74ea 100644 --- a/src/status_im/ui/screens/wallet/accounts/views.cljs +++ b/src/status_im/ui/screens/wallet/accounts/views.cljs @@ -131,13 +131,12 @@ portfolio-value [:portfolio-value] empty-balances? [:empty-balances?] {:keys [mnemonic]} [:multiaccount]] - [reanimated/view {:style (styles/container {:minimized minimized}) - :pointer-events :none} - + [reanimated/view {:style (styles/container {:minimized minimized})} (when (and mnemonic minimized (not empty-balances?)) [reanimated/view {:style (styles/accounts-mnemonic {:animation animation})} [react/touchable-highlight - {:on-press #(re-frame/dispatch [:navigate-to :backup-seed])} + {:on-press #(re-frame/dispatch [:navigate-to :profile-stack {:screen :backup-seed + :initial false}])} [react/view {:flex-direction :row :align-items :center} [react/view {:width 14 :height 14 @@ -155,7 +154,8 @@ (i18n/label :t/back-up-your-seed-phrase)]]]]) [reanimated/view {:style (styles/value-container {:minimized minimized - :animation animation})} + :animation animation}) + :pointer-events :none} [reanimated/view {:style {:justify-content :center}} [quo/text {:animated? true :weight :semi-bold