Skip to content

Commit a836efc

Browse files
authored
Revert "chore: add alpha generation guide to mt5 except gold (#17976)" (#17981)
This reverts commit ba48580.
1 parent ba48580 commit a836efc

File tree

13 files changed

+4
-198
lines changed

13 files changed

+4
-198
lines changed

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cfd/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
"@deriv-com/ui": "1.36.4",
8989
"@deriv-com/analytics": "1.28.2",
9090
"@deriv-com/translations": "1.3.9",
91-
"@deriv/quill-icons": "2.2.1",
9291
"@deriv-com/utils": "^0.0.42",
9392
"@deriv/account": "^1.0.0",
9493
"@deriv/api": "^1.0.0",

packages/cfd/src/Containers/__tests__/dmt5-trade-modal.spec.tsx

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -154,27 +154,4 @@ describe('<DMT5TradeModal/>', () => {
154154
renderComponent({ props: new_mock_props });
155155
expect(screen.queryByText(/MockMigrateBanner/)).toBeInTheDocument();
156156
});
157-
158-
it('should render information banner for non-gold account', () => {
159-
const new_mock_props = {
160-
...mock_props,
161-
mt5_trade_account: {
162-
product: 'svg',
163-
},
164-
};
165-
renderComponent({ props: new_mock_props });
166-
expect(screen.getByText(/Alpha Generation guide/)).toBeInTheDocument();
167-
expect(screen.getByText(/Tailor your indicators with expert-driven trend analysis./)).toBeInTheDocument();
168-
});
169-
170-
it('should not render information banner for gold account', () => {
171-
const new_mock_props = {
172-
...mock_props,
173-
mt5_trade_account: {
174-
product: 'gold',
175-
},
176-
};
177-
renderComponent({ props: new_mock_props });
178-
expect(screen.queryByText(/Alpha Generation guide/)).not.toBeInTheDocument();
179-
});
180157
});

packages/cfd/src/Containers/dmt5-trade-modal.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { TAdditionalDetailsOfEachMT5Loginid } from '@deriv/stores/types';
33
import { useDevice } from '@deriv-com/ui';
4-
import { Text, Icon, Money, StatusBadge, InformationBanner } from '@deriv/components';
4+
import { Text, Icon, Money, StatusBadge } from '@deriv/components';
55
import getMT5StatusBadgeConfig from '@deriv/account/src/Configs/get-mt5-status-badge-config';
66
import { getCFDAccountKey, MT5_ACCOUNT_STATUS, PRODUCT, Jurisdiction } from '@deriv/shared';
77
import { observer, useStore } from '@deriv/stores';
@@ -15,7 +15,6 @@ import PasswordBox from '../Components/passwordbox';
1515
import SpecBox from '../Components/specbox';
1616
import { TCFDPasswordReset } from './props.types';
1717
import { TProducts, TTradingPlatformAccounts } from '../Components/props.types';
18-
import { StandaloneChartAreaRegularIcon, StandaloneArrowUpRightRegularIcon } from '@deriv/quill-icons';
1918

2019
type TMT5TradeModalProps = {
2120
mt5_trade_account: TAdditionalDetailsOfEachMT5Loginid;
@@ -208,17 +207,6 @@ const DMT5TradeModal = observer(
208207
<Localize i18n_default_text='Server maintenance starts at 01:00 GMT every Sunday, and this process may take up to 2 hours to complete. Service may be disrupted during this time.' />
209208
</div>
210209
</div>
211-
{isDesktop && mt5_trade_account.product !== PRODUCT.GOLD && (
212-
<InformationBanner
213-
information_icon={<StandaloneChartAreaRegularIcon fill='#095A66' iconSize='sm' />}
214-
title={<Localize i18n_default_text='Alpha Generation guide' />}
215-
description={
216-
<Localize i18n_default_text='Tailor your indicators with expert-driven trend analysis.' />
217-
}
218-
redirect_icon={<StandaloneArrowUpRightRegularIcon fill='#000000' iconSize='sm' />}
219-
link='https://docs.deriv.com/misc/alpha_generation_guide.pdf'
220-
/>
221-
)}
222210
</div>
223211
{is_eligible_to_migrate && <MigrationBanner is_trade_modal />}
224212

packages/components/src/components/information-banner/index.tsx

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/components/src/components/information-banner/information-banner.scss

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/components/src/components/information-banner/information-banner.tsx

Lines changed: 0 additions & 34 deletions
This file was deleted.

packages/components/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ export { default as UnhandledErrorModal } from './components/unhandled-error-mod
124124
export { default as VerticalTab } from './components/vertical-tab';
125125
export { default as Wizard } from './components/wizard';
126126
export { default as VideoPlayer } from './components/video-player';
127-
export { default as InformationBanner } from './components/information-banner';
128127
export * from './components/wallet-card';
129128
export * from './components/wallet-icon';
130129
export * from './components/app-linked-with-wallet-icon';

packages/wallets/src/components/InformationBanner/InformationBanner.scss

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/wallets/src/components/InformationBanner/InformationBanner.tsx

Lines changed: 0 additions & 35 deletions
This file was deleted.

packages/wallets/src/components/InformationBanner/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/wallets/src/components/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export * from './FadedAnimatedList';
1111
export * from './FlowProvider';
1212
export * from './FormDropdown';
1313
export * from './FormField';
14-
export * from './InformationBanner';
1514
export * from './OptionsAndMultipliersListing';
1615
export * from './SentEmailContent';
1716
export * from './SkeletonLoader';

packages/wallets/src/features/cfd/screens/MT5TradeScreen/MT5TradeScreen.tsx

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
import React, { FC, Fragment, useMemo } from 'react';
22
import { useHistory } from 'react-router-dom';
33
import { useActiveWalletAccount, useCtraderAccountsList, useDxtradeAccountsList, useIsEuRegion } from '@deriv/api-v2';
4-
import {
5-
LabelPairedArrowUpArrowDownMdBoldIcon,
6-
LabelPairedCircleExclamationMdFillIcon,
7-
StandaloneArrowUpRightRegularIcon,
8-
StandaloneChartAreaRegularIcon,
9-
} from '@deriv/quill-icons';
4+
import { LabelPairedArrowUpArrowDownMdBoldIcon, LabelPairedCircleExclamationMdFillIcon } from '@deriv/quill-icons';
105
import { Localize, useTranslations } from '@deriv-com/translations';
116
import { Button, InlineMessage, Text, useDevice } from '@deriv-com/ui';
12-
import { InformationBanner, WalletBadge, WalletListCardBadge } from '../../../../components';
7+
import { WalletBadge, WalletListCardBadge } from '../../../../components';
138
import { useModal } from '../../../../components/ModalProvider';
149
import { TAddedMT5Account, THooks } from '../../../../types';
15-
import {
16-
CFD_PLATFORMS,
17-
getMarketTypeDetails,
18-
getServiceMaintenanceMessages,
19-
PlatformDetails,
20-
PRODUCT,
21-
} from '../../constants';
10+
import { CFD_PLATFORMS, getMarketTypeDetails, getServiceMaintenanceMessages, PlatformDetails } from '../../constants';
2211
import MT5DesktopRedirectOption from './MT5TradeLink/MT5DesktopRedirectOption';
2312
import MT5MobileRedirectOption from './MT5TradeLink/MT5MobileRedirectOption';
2413
import { MT5TradeDetailsItem } from './MT5TradeDetailsItem';
@@ -236,18 +225,6 @@ const MT5TradeScreen: FC<MT5TradeScreenProps> = ({ mt5Account }) => {
236225
}
237226
</Text>
238227
</div>
239-
240-
{isDesktop && details?.platform === mt5Platform && marketTypeTitle.toLowerCase() !== PRODUCT.GOLD && (
241-
<InformationBanner
242-
description={
243-
<Localize i18n_default_text='Tailor your indicators with expert-driven trend analysis.' />
244-
}
245-
informationIcon={<StandaloneChartAreaRegularIcon fill='#095A66' iconSize='sm' />}
246-
link='https://docs.deriv.com/misc/alpha_generation_guide.pdf'
247-
redirectIcon={<StandaloneArrowUpRightRegularIcon fill='#000000' iconSize='sm' />}
248-
title={<Localize i18n_default_text='Alpha Generation guide' />}
249-
/>
250-
)}
251228
</div>
252229
<div className='wallets-mt5-trade-screen__links'>
253230
{platform === mt5Platform && (

0 commit comments

Comments
 (0)