@@ -676,10 +693,11 @@ const CFDAccountCardComponent = ({
);
};
-const CFDAccountCard = connect(({ modules: { cfd }, client }: RootStore) => ({
+const CFDAccountCard = connect(({ modules: { cfd }, client, ui }: RootStore) => ({
dxtrade_tokens: cfd.dxtrade_tokens,
isEligibleForMoreDemoMt5Svg: client.isEligibleForMoreDemoMt5Svg,
isEligibleForMoreRealMt5: client.isEligibleForMoreRealMt5,
+ setIsAcuityModalOpen: ui.setIsAcuityModalOpen,
setMT5TradeAccount: cfd.setMT5TradeAccount,
}))(CFDAccountCardComponent);
diff --git a/packages/cfd/src/Components/cfd-mt5-demo-account-display.tsx b/packages/cfd/src/Components/cfd-mt5-demo-account-display.tsx
index 8f9bc6c06437..061c7cb8f0ea 100644
--- a/packages/cfd/src/Components/cfd-mt5-demo-account-display.tsx
+++ b/packages/cfd/src/Components/cfd-mt5-demo-account-display.tsx
@@ -107,7 +107,7 @@ const CFDMT5DemoAccountDisplay = ({
}, [is_logged_in, is_eu, is_eu_country, residence, platform]);
return (
-
+
{is_loading ? (
) : (
@@ -176,7 +176,7 @@ const CFDMT5DemoAccountDisplay = ({
)}
)}
-
+
);
};
diff --git a/packages/cfd/src/Components/cfd-real-account-display.tsx b/packages/cfd/src/Components/cfd-real-account-display.tsx
index 527fa67192f3..958595b13ad9 100644
--- a/packages/cfd/src/Components/cfd-real-account-display.tsx
+++ b/packages/cfd/src/Components/cfd-real-account-display.tsx
@@ -61,6 +61,7 @@ type TCFDRealAccountDisplayProps = {
account_status?: object;
openDerivRealAccountNeededModal: () => void;
should_enable_add_button?: boolean;
+ setIsAcuityModalOpen: (value: boolean) => void;
};
const CFDRealAccountDisplay = ({
@@ -88,6 +89,7 @@ const CFDRealAccountDisplay = ({
residence,
openDerivRealAccountNeededModal,
should_enable_add_button,
+ setIsAcuityModalOpen,
}: TCFDRealAccountDisplayProps) => {
const is_eu_user = (is_logged_in && is_eu) || (!is_logged_in && is_eu_country);
@@ -231,6 +233,7 @@ const CFDRealAccountDisplay = ({
toggleShouldShowRealAccountsList={toggleShouldShowRealAccountsList}
toggleAccountsDialog={toggleAccountsDialog}
toggleMT5TradeModal={toggleMT5TradeModal}
+ setIsAcuityModalOpen={setIsAcuityModalOpen}
/>
);
diff --git a/packages/cfd/src/Components/props.types.ts b/packages/cfd/src/Components/props.types.ts
index d2f0d6d443cb..ec638a4951f2 100644
--- a/packages/cfd/src/Components/props.types.ts
+++ b/packages/cfd/src/Components/props.types.ts
@@ -108,6 +108,7 @@ export type TCFDAccountCard = {
toggleMT5TradeModal: (arg?: boolean) => void;
toggleShouldShowRealAccountsList?: (arg?: boolean) => void;
setMT5TradeAccount: (arg: any) => void;
+ setIsAcuityModalOpen: (value: boolean) => void;
};
export type TTradingPlatformAccounts = {
diff --git a/packages/cfd/src/Containers/__tests__/cfd-dashboard.spec.tsx b/packages/cfd/src/Containers/__tests__/cfd-dashboard.spec.tsx
index 377092a28232..88e110edcb48 100644
--- a/packages/cfd/src/Containers/__tests__/cfd-dashboard.spec.tsx
+++ b/packages/cfd/src/Containers/__tests__/cfd-dashboard.spec.tsx
@@ -142,6 +142,7 @@ describe('