From d667852f62a3774306ec52e8ab569a35796bfcf8 Mon Sep 17 00:00:00 2001 From: Max Voloshinskii Date: Thu, 11 Apr 2024 06:33:06 +0300 Subject: [PATCH] fix(mobile): Bring back FinishSetupList --- packages/mobile/src/tabs/Wallet/WalletScreen.tsx | 7 +++++++ .../src/tabs/Wallet/components/WalletContentList.tsx | 3 +++ 2 files changed, 10 insertions(+) diff --git a/packages/mobile/src/tabs/Wallet/WalletScreen.tsx b/packages/mobile/src/tabs/Wallet/WalletScreen.tsx index c2e44b585..7011f4272 100644 --- a/packages/mobile/src/tabs/Wallet/WalletScreen.tsx +++ b/packages/mobile/src/tabs/Wallet/WalletScreen.tsx @@ -26,6 +26,7 @@ import { MainStackRouteNames } from '$navigation'; import { WalletActionButtons } from './components/WalletActionButtons/WalletActionButtons'; import { WalletContentList } from './components/WalletContentList'; import { usePreparedWalletContent } from './content-providers/utils/usePreparedWalletContent'; +import { FinishSetupList } from './components/FinishSetupList'; export const WalletScreen = memo(({ navigation }) => { const dispatch = useDispatch(); @@ -73,6 +74,11 @@ export const WalletScreen = memo(({ navigation }) => { const isWatchOnly = wallet && wallet.isWatchOnly; + const ListFooter = useMemo( + () => (isWatchOnly ? null : ), + [isWatchOnly], + ); + const ListHeader = useMemo( () => ( @@ -168,6 +174,7 @@ export const WalletScreen = memo(({ navigation }) => { { const renderLeftContent = () => { @@ -102,6 +103,7 @@ interface WalletContentListProps { isRefreshing: boolean; isFocused: boolean; ListHeaderComponent?: React.ReactElement; + ListFooterComponent?: React.ReactElement | null; } export const WalletContentList = memo((props) => { @@ -115,6 +117,7 @@ export const WalletContentList = memo((props) => { )} ListHeaderComponent={props.ListHeaderComponent} + ListFooterComponent={props.ListFooterComponent} renderItem={RenderItem} data={props.walletContent} refreshControl={