From 30d23e31413886c5dfb1f053065a8bf90738896c Mon Sep 17 00:00:00 2001 From: Juliano Lazzarotto <30806844+stackchain@users.noreply.github.com> Date: Mon, 29 Jul 2024 19:56:54 +0100 Subject: [PATCH] refactor(wallet-mobile): create + restore p_b --- apps/wallet-mobile/.env | 2 +- .../src/components/Modal/ModalScreen.tsx | 2 +- .../AboutRecoveryPhraseScreen.tsx | 22 +-- .../CreateWallet/RecoveryPhraseScreen.tsx | 42 +++-- .../VerifyRecoveryPhraseScreen.tsx | 120 ++++++-------- .../CreateWallet/WalletDetailsScreen.tsx | 155 ++++++++---------- .../RestoreWalletDetailsScreen.tsx | 55 +++---- 7 files changed, 182 insertions(+), 216 deletions(-) diff --git a/apps/wallet-mobile/.env b/apps/wallet-mobile/.env index 314cdfb13d..a1031aea55 100644 --- a/apps/wallet-mobile/.env +++ b/apps/wallet-mobile/.env @@ -12,7 +12,7 @@ WALLET_2_NETWORK_ID=300 WALLET_2_MNEMONIC=abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon share WALLET_3_NETWORK_ID=300 -WALLET_3_MNEMONIC=sign moral mass glare charge type candy debris fine cup torch rotate banana length foot +WALLET_3_MNEMONIC=typical evoke despair burger ripple venue assist shoot donate alter twice bomb glimpse asthma explain BANXA_TEST_WALLET=addr1qyfuspldlchc5kechfe5jzdrr9jms2s9w0tq4hggy9zgkhxssydveuc8xyx4zh27fwcmr62mraeezjwf24hzkyejwfmq7yptmd diff --git a/apps/wallet-mobile/src/components/Modal/ModalScreen.tsx b/apps/wallet-mobile/src/components/Modal/ModalScreen.tsx index 04600cc5c3..cc1af44c65 100644 --- a/apps/wallet-mobile/src/components/Modal/ModalScreen.tsx +++ b/apps/wallet-mobile/src/components/Modal/ModalScreen.tsx @@ -125,9 +125,9 @@ const useStyles = () => { borderTopLeftRadius: 20, }, sheet: { + backgroundColor: isDark ? color.gray_c50 : color.white_static, ...atoms.flex_1, ...atoms.self_stretch, - backgroundColor: isDark ? color.gray_c50 : color.white_static, }, title: { ...atoms.heading_3_medium, diff --git a/apps/wallet-mobile/src/features/SetupWallet/useCases/CreateWallet/AboutRecoveryPhraseScreen.tsx b/apps/wallet-mobile/src/features/SetupWallet/useCases/CreateWallet/AboutRecoveryPhraseScreen.tsx index b4042f157a..8774fd95a2 100644 --- a/apps/wallet-mobile/src/features/SetupWallet/useCases/CreateWallet/AboutRecoveryPhraseScreen.tsx +++ b/apps/wallet-mobile/src/features/SetupWallet/useCases/CreateWallet/AboutRecoveryPhraseScreen.tsx @@ -59,14 +59,12 @@ export const AboutRecoveryPhraseScreen = () => { - + + - - -