Skip to content

Commit

Permalink
Update Text Translation by removing brandName (#6582)
Browse files Browse the repository at this point in the history
Co-authored-by: Carol Sachdeva <58209918+carol-binary@users.noreply.github.com>
  • Loading branch information
suisin-deriv and carolsachdeva committed Sep 27, 2022
1 parent 9c53182 commit 7c8fa44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import React from 'react';
import { Text, Icon } from '@deriv/components';
import { Localize } from '@deriv/translations';
import { getBrandName } from '@deriv/shared';

const FakeMessageContent = () => (
<div className='fake-link__container'>
<Icon icon='IcAccountCross' className='warning-scam-message__icon--cross' />
<div className='fake-link__message-container'>
<Text>
<Localize
i18n_default_text={`Fake links often contain the word that looks like "{{ brandName }}" but look out for these differences.`}
values={{ brandName: getBrandName() }}
i18n_default_text={`Fake links often contain the word that looks like "Deriv" but look out for these differences.`}
/>
</Text>
<div className='fake-link__link-container'>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Text, Icon } from '@deriv/components';
import { Localize } from '@deriv/translations';
import { getBrandName } from '@deriv/shared';
import CorrectMessageContent from './correct-message-content';
import FakeMessageContent from './fake-message-content';

Expand All @@ -10,16 +9,12 @@ const WarningScamMessageContent = () => (
<div className='warning-scam-message--content__info--title'>
<Icon icon='IcAccountWebsite' className='warning-scam-message__website-icon' size={24} />
<Text weight='bold'>
<Localize
i18n_default_text={`Do not get lured to fake "{{ brandName }}" pages!`}
values={{ brandName: getBrandName() }}
/>
<Localize i18n_default_text={`Do not get lured to fake "Deriv" pages!`} />
</Text>
</div>
<Text size='xxs' className='warning-scam-message__small-text-message'>
<Localize
i18n_default_text={`You may see links to websites with a fake {{ brandName }} login page where you’ll get scammed for your money.`}
values={{ brandName: getBrandName() }}
i18n_default_text={`You may see links to websites with a fake Deriv login page where you’ll get scammed for your money.`}
/>
</Text>
<div className='warning-scam-message--content__info--message'>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { Text } from '@deriv/components';
import { getBrandName } from '@deriv/shared';
import { Localize } from '@deriv/translations';

const WarningScamMessageTitle = () => (
Expand All @@ -9,10 +8,7 @@ const WarningScamMessageTitle = () => (
<Localize i18n_default_text='Beware of fake links.' />
</Text>
<Text>
<Localize
i18n_default_text={`A link can contain the word "{{ brandName }}" and still be fake.`}
values={{ brandName: getBrandName() }}
/>
<Localize i18n_default_text={`A link can contain the word "Deriv" and still be fake.`} />
</Text>
</div>
);
Expand Down

0 comments on commit 7c8fa44

Please sign in to comment.