diff --git a/packages/suite/src/components/wallet/WalletLayout/AccountTopPanel/AccountNavigation.tsx b/packages/suite/src/components/wallet/WalletLayout/AccountTopPanel/AccountNavigation.tsx index f111c0fc048..5e3f24676d3 100644 --- a/packages/suite/src/components/wallet/WalletLayout/AccountTopPanel/AccountNavigation.tsx +++ b/packages/suite/src/components/wallet/WalletLayout/AccountTopPanel/AccountNavigation.tsx @@ -8,7 +8,7 @@ import { useDispatch, useSelector } from 'src/hooks/suite'; import { goto } from 'src/actions/suite/routerActions'; import { selectSelectedAccount } from 'src/reducers/wallet/selectedAccountReducer'; import { NavigationItem, SubpageNavigation } from 'src/components/suite/layouts/SuiteLayout'; - +import { selectHasExperimentalFeature } from 'src/reducers/suite/suiteReducer'; export const ACCOUNT_TABS = [ 'wallet-index', 'wallet-details', @@ -23,7 +23,7 @@ export const AccountNavigation = () => { const account = useSelector(selectSelectedAccount); const routerParams = useSelector(state => state.router.params) as WalletParams; const dispatch = useDispatch(); - + const enabledNftSection = useSelector(selectHasExperimentalFeature('nft-section')); const network = getNetworkOptional(routerParams?.symbol); const networkType = account?.networkType || network?.networkType || ''; @@ -62,7 +62,7 @@ export const AccountNavigation = () => { goToWithAnalytics('wallet-nfts', { preserveParams: true }); }, title: , - isHidden: !hasNetworkFeatures(account, 'nfts'), + isHidden: !hasNetworkFeatures(account, 'nfts') || !enabledNftSection, activeRoutes: ['wallet-nfts', 'wallet-nfts-hidden'], 'data-testid': '@wallet/menu/wallet-nfts', }, diff --git a/packages/suite/src/constants/suite/experimental.ts b/packages/suite/src/constants/suite/experimental.ts index 45e6721e889..587f71cb618 100644 --- a/packages/suite/src/constants/suite/experimental.ts +++ b/packages/suite/src/constants/suite/experimental.ts @@ -5,7 +5,7 @@ import { Route } from '@suite-common/suite-types'; import { Dispatch } from '../../types/suite'; -export type ExperimentalFeature = 'password-manager' | 'tor-snowflake'; +export type ExperimentalFeature = 'password-manager' | 'tor-snowflake' | 'nft-section'; export type ExperimentalFeatureConfig = { title: TranslationKey; @@ -39,4 +39,8 @@ export const EXPERIMENTAL_FEATURES: Record