From 2e309f997d489aaaf199018d09f7c14f09a63251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Vytick=20Vytrhl=C3=ADk?= Date: Tue, 27 Feb 2024 10:25:00 +0100 Subject: [PATCH] fixup! feat(suite-native): Add coin behind feature flag --- .../accounts/src/components/AddAccountsButton.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/suite-native/accounts/src/components/AddAccountsButton.tsx b/suite-native/accounts/src/components/AddAccountsButton.tsx index 1b8bfc9cc750..3655cffe0be2 100644 --- a/suite-native/accounts/src/components/AddAccountsButton.tsx +++ b/suite-native/accounts/src/components/AddAccountsButton.tsx @@ -10,11 +10,7 @@ import { StackNavigationProps, } from '@suite-native/navigation'; import { IconButton } from '@suite-native/atoms'; -import { - selectAreAllDevicesDisconnectedOrAccountless, - selectDeviceDiscovery, - selectIsPortfolioTrackerDevice, -} from '@suite-common/wallet-core'; +import { selectDeviceDiscovery, selectIsPortfolioTrackerDevice } from '@suite-common/wallet-core'; import { useIsAddCoinAccountEnabled } from '../useIsAddCoinAccountEnabled'; @@ -24,14 +20,11 @@ export const AddAccountButton = () => { const isSelectedDevicePortfolioTracker = useSelector(selectIsPortfolioTrackerDevice); const discovery = useSelector(selectDeviceDiscovery); - const areAllDevicesDisconnectedOrAccountless = useSelector( - selectAreAllDevicesDisconnectedOrAccountless, - ); + const { isAddCoinAccountEnabled } = useIsAddCoinAccountEnabled(); const shouldShowAddAccountButton = - isSelectedDevicePortfolioTracker || - (isAddCoinAccountEnabled && !areAllDevicesDisconnectedOrAccountless && !discovery); + isSelectedDevicePortfolioTracker || (isAddCoinAccountEnabled && !discovery); const navigateToImportScreen = () => { navigation.navigate(RootStackRoutes.AccountsImport, {