Skip to content

Commit

Permalink
[WALL] Lubega / WALL-4837 / MT5 reset password responsive broken head…
Browse files Browse the repository at this point in the history
…er (binary-com#16722)

* fix: mt5 reset password broken header

* fix: update unit test

* fix: update leverage

* fix: localize constants

* fix: withdrawal crypto receipt
  • Loading branch information
lubega-deriv committed Sep 9, 2024
1 parent 186ab98 commit 9b585b2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,10 @@ const WithdrawalCryptoDisclaimer = () => (
<InlineMessage>
<ul className='wallets-withdrawal-crypto-disclaimer__items'>
<li>
<Localize
i18n_default_text='Do not enter an address linked to an initial coin offering (ICO) purchase or crowdsale. If you do,
the initial coin offering (ICO) tokens will not be credited into your account.'
/>
<Localize i18n_default_text='Do not enter an address linked to an initial coin offering (ICO) purchase or crowdsale. If you do, the initial coin offering (ICO) tokens will not be credited into your account.' />
</li>
<li>
<Localize
i18n_default_text="Please note that your maximum and minimum withdrawal limits aren't fixed. They change due to
the high volatility of cryptocurrency."
/>
<Localize i18n_default_text="Please note that your maximum and minimum withdrawal limits aren't fixed. They change due to the high volatility of cryptocurrency." />
</li>
</ul>
</InlineMessage>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ const WithdrawalCryptoReceipt: React.FC<TProps> = ({ onClose, withdrawalReceipt
</div>

<Text align='center' as='p'>
<Localize
i18n_default_text="Your withdrawal is currently in review. It will be processed within 24 hours. We'll send you
an email once your transaction has been processed."
/>
<Localize i18n_default_text="Your withdrawal is currently in review. It will be processed within 24 hours. We'll send you an email once your transaction has been processed." />
</Text>
</div>
<div className='wallets-withdrawal-crypto-receipt__actions'>
Expand Down
10 changes: 5 additions & 5 deletions packages/wallets/src/features/cfd/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,31 +80,31 @@ export const getAppToContentMapper = () =>
icon: <LabelPairedWindowsXlIcon />,
link: ctraderLinks.windows,
text: localize('Download'),
title: 'CTrader Windows App',
title: localize('CTrader Windows App'),
},
linux: {
icon: <LabelPairedLinuxXlIcon />,
link: whiteLabelLinks.linux,
text: localize('Learn more'),
title: 'MetaTrader 5 Linux app',
title: localize('MetaTrader 5 Linux app'),
},
macos: {
icon: <LabelPairedMacosXlIcon />,
link: whiteLabelLinks.macos,
text: localize('Download'),
title: 'MetaTrader 5 MacOS app',
title: localize('MetaTrader 5 MacOS app'),
},
web: {
icon: <PartnersProductDerivMt5BrandLightLogoHorizontalIcon height={32} width={32} />,
link: whiteLabelLinks.webtrader_url,
text: localize('Open'),
title: 'MetaTrader 5 web',
title: localize('MetaTrader 5 web'),
},
windows: {
icon: <LabelPairedWindowsXlIcon />,
link: whiteLabelLinks.windows,
text: localize('Download'),
title: 'MetaTrader 5 Windows app',
title: localize('MetaTrader 5 Windows app'),
},
} as const);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const CompareAccountsDescription = ({ isDemo, isEuRegion, marketType, shortCode
>
<div className='wallets-compare-accounts-text-container__separator'>
<WalletText align='center' as='h1' size='xl' weight='bold'>
{'Up to'} {jurisdictionData.leverage}
{jurisdictionData.leverage}
</WalletText>
<WalletText align='center' as='p' size='2xs'>
{!isEuRegion ? jurisdictionData.leverage_description : 'Leverage'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('CompareAccountsDescription', () => {
counterparty_company_description: 'Counterparty company description',
jurisdiction: 'St. Vincent & Grenadines',
jurisdiction_description: 'Jurisdiction description',
leverage: '1:1000',
leverage: 'Up to 1:1000',
leverage_description: 'Leverage description',
regulator: 'Financial Commission',
regulator_description: 'Regulator description',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const cfdConfig = {
counterparty_company_description: localize('Counterparty company'),
jurisdiction: localize('St. Vincent & Grenadines'),
jurisdiction_description: localize('Jurisdiction'),
leverage: localize('1:1000'),
leverage: localize('Up to 1:1000'),
leverage_description: localize('Maximum leverage'),
regulator: localize('Financial Commission'),
regulator_description: localize('Regulator/External dispute resolution'),
Expand Down Expand Up @@ -175,7 +175,7 @@ const getJurisdictionDescription = (shortcode?: string) => {
...cfdConfig,
counterparty_company: localize('Deriv (FX) Ltd'),
jurisdiction: localize('Labuan'),
leverage: localize('1:100'),
leverage: localize('Up to 1:100'),
regulator: localize('Labuan Financial Services Authority'),
regulator_description: localize('Regulator/External dispute resolution'),
regulator_license: localize('(License no. MB/18/0024)'),
Expand All @@ -186,7 +186,7 @@ const getJurisdictionDescription = (shortcode?: string) => {
...cfdConfig,
counterparty_company: localize('Deriv Investments (Europe) Limited'),
jurisdiction: localize('Malta'),
leverage: localize('1:30'),
leverage: localize('Up to 1:30'),
regulator: localize('Financial Commission'),
regulator_description: '',
regulator_license: localize(
Expand Down

0 comments on commit 9b585b2

Please sign in to comment.