MockedCurr
jest.mock('../show-notifications', () => jest.fn(() =>
MockedShowNotifications
));
jest.mock('@deriv/hooks', () => ({
- useFeatureFlags: () => ({
- is_next_wallet_enabled: false,
- }),
- useIsRealAccountNeededForCashier: () => false,
- useHasSetCurrency: () => true,
+ ...jest.requireActual('@deriv/hooks'),
+ useFeatureFlags: jest.fn(() => ({})),
+ useHasSetCurrency: jest.fn(() => true),
+ useIsRealAccountNeededForCashier: jest.fn(() => false),
}));
describe('TradersHubHeader', () => {
diff --git a/packages/core/src/App/Containers/Layout/header/__tests__/traders-hub-onboarding.spec.tsx b/packages/core/src/App/Containers/Layout/header/__tests__/traders-hub-onboarding.spec.tsx
index f7cdb0d44e17..aa9f9a0795fc 100644
--- a/packages/core/src/App/Containers/Layout/header/__tests__/traders-hub-onboarding.spec.tsx
+++ b/packages/core/src/App/Containers/Layout/header/__tests__/traders-hub-onboarding.spec.tsx
@@ -8,13 +8,6 @@ import TradersHubOnboarding from '../traders-hub-onboarding';
import { routes } from '@deriv/shared';
import { TCoreStores } from '@deriv/stores/types';
-jest.mock('@deriv/hooks', () => ({
- ...jest.requireActual('@deriv/hooks'),
- useFeatureFlags: jest.fn(() => ({
- is_next_wallet_enabled: false,
- })),
-}));
-
describe('TradersHubOnboarding', () => {
const onboarding_icon_testid = 'dt_traders_hub_onboarding_icon';
const popover_wrapper_testid = 'dt_popover_wrapper';
diff --git a/packages/core/src/App/Containers/Layout/header/default-mobile-links.tsx b/packages/core/src/App/Containers/Layout/header/default-mobile-links.tsx
index 814a1f0a972e..997fafba7116 100644
--- a/packages/core/src/App/Containers/Layout/header/default-mobile-links.tsx
+++ b/packages/core/src/App/Containers/Layout/header/default-mobile-links.tsx
@@ -2,20 +2,22 @@ import React from 'react';
import { Button, Icon } from '@deriv/components';
import { routes } from '@deriv/shared';
+import { useStore } from '@deriv/stores';
import { Localize } from '@deriv/translations';
import { BinaryLink } from 'App/Components/Routes';
import ShowNotifications from './show-notifications';
import TradersHubOnboarding from './traders-hub-onboarding';
-import { useFeatureFlags } from '@deriv/hooks';
type TDefaultMobileLinks = {
handleClickCashier: () => void;
};
const DefaultMobileLinks = React.memo(({ handleClickCashier }: TDefaultMobileLinks) => {
- const { is_next_wallet_enabled } = useFeatureFlags();
+ const { client } = useStore();
+ const { has_wallet } = client;
+
return (
@@ -27,7 +29,7 @@ const DefaultMobileLinks = React.memo(({ handleClickCashier }: TDefaultMobileLin
- {!is_next_wallet_enabled && (
+ {!has_wallet && (