From 92652d49209c4793eb0a600b92a2b77266ec44d2 Mon Sep 17 00:00:00 2001 From: bogoslavskiy Date: Thu, 30 Nov 2023 10:45:02 +0300 Subject: [PATCH] fix(mobile): add keyboard accessory view for check backup --- packages/@core-js/src/Wallet.ts | 2 +- .../mobile/src/core/Settings/Settings.tsx | 82 ++++++++++--------- .../src/screens/BackupCheckPhraseScreen.tsx | 27 ++++-- .../src/components/KeyboardAccessoryView.tsx | 42 ++++++++++ packages/uikit/src/index.ts | 1 + 5 files changed, 109 insertions(+), 45 deletions(-) create mode 100644 packages/uikit/src/components/KeyboardAccessoryView.tsx diff --git a/packages/@core-js/src/Wallet.ts b/packages/@core-js/src/Wallet.ts index 5f6fb988b..726128113 100644 --- a/packages/@core-js/src/Wallet.ts +++ b/packages/@core-js/src/Wallet.ts @@ -180,7 +180,7 @@ export class Wallet { const timestamp = await this.storage.getItem('lastBackupTimestamp'); if (timestamp !== null) { - this.state.set({ lastBackupTimestamp: timestamp }); + this.state.set({ lastBackupTimestamp: Number(timestamp) }); } } diff --git a/packages/mobile/src/core/Settings/Settings.tsx b/packages/mobile/src/core/Settings/Settings.tsx index cca74d67c..5c6d8a41c 100644 --- a/packages/mobile/src/core/Settings/Settings.tsx +++ b/packages/mobile/src/core/Settings/Settings.tsx @@ -285,48 +285,52 @@ export const Settings: FC = () => { /> - - {shouldShowTokensButton && ( - + + {shouldShowTokensButton && ( + + } + title={t('settings_jettons_list')} + onPress={handleManageTokens} /> - } - title={t('settings_jettons_list')} - onPress={handleManageTokens} - /> - )} - {hasSubscriptions && ( - + } + title={t('settings_subscriptions')} + onPress={handleSubscriptions} /> - } - title={t('settings_subscriptions')} - onPress={handleSubscriptions} - /> - )} - {isAppearanceVisible && ( - + } + title={t('settings_appearance')} + onPress={handleAppearance} /> - } - title={t('settings_appearance')} - onPress={handleAppearance} - /> - )} - - + )} + + + + )} {!!wallet && showNotifications && ( { const { words } = useParams<{ words: { index: number; word: string }[] }>(); @@ -60,7 +69,7 @@ export const BackupCheckPhraseScreen = memo(() => { return ( - { ))} + +