From 29b43322ff531e37a8d3d131519d867a1de0dc8a Mon Sep 17 00:00:00 2001 From: Nikolai Berestevich Date: Mon, 2 Aug 2021 11:28:37 +0300 Subject: [PATCH] nikolai.berestevich/refactor/cgange-alt-tags-tradetypes-39868 --- src/pages/derivx/_accounts.js | 4 ++-- src/pages/dmt5/_flexibility.js | 6 ++--- src/pages/dmt5/_why-trader.js | 12 +++++----- .../trade-types/margin/_available-markets.js | 23 ++++--------------- .../trade-types/margin/_why-trade-margin.js | 10 ++++---- .../multiplier/_available-trades.js | 14 ++--------- .../multiplier/_how-multiplier-works.js | 6 ++--- .../multiplier/_markets-available.js | 9 ++------ .../multiplier/_what-are-multipliers.js | 12 +++++----- .../trade-types/options/_how-options-works.js | 6 ++--- .../trade-types/options/_markets-available.js | 23 ++++--------------- .../trade-types/options/_what-are-options.js | 10 ++++---- 12 files changed, 45 insertions(+), 90 deletions(-) diff --git a/src/pages/derivx/_accounts.js b/src/pages/derivx/_accounts.js index 5e5d446c8e8..3e6ea55727e 100644 --- a/src/pages/derivx/_accounts.js +++ b/src/pages/derivx/_accounts.js @@ -24,14 +24,14 @@ const content = [ text: ( ), - icon: , + icon: , }, { header: , text: ( ), - icon: , + icon: , }, ] const Section = styled(SectionContainer)` diff --git a/src/pages/dmt5/_flexibility.js b/src/pages/dmt5/_flexibility.js index cb4dcc38c84..67074c0691f 100644 --- a/src/pages/dmt5/_flexibility.js +++ b/src/pages/dmt5/_flexibility.js @@ -31,21 +31,21 @@ const content = [ text: ( ), - icon: , + icon: , }, { header: , text: ( ), - icon: , + icon: , }, { header: , text: ( ), - icon: , + icon: , }, ] const Section = styled(SectionContainer)` diff --git a/src/pages/dmt5/_why-trader.js b/src/pages/dmt5/_why-trader.js index 016a6d5eae4..533866b0247 100644 --- a/src/pages/dmt5/_why-trader.js +++ b/src/pages/dmt5/_why-trader.js @@ -14,7 +14,7 @@ const card_content = [ header: localize('Quick demo account sign-up'), text: localize('Practise with a demo account preloaded with unlimited virtual funds.'), image: InstantAccess, - alt: 'instant access', + key: 0, }, { header: localize('Multiple assets on a single platform'), @@ -22,7 +22,7 @@ const card_content = [ 'Explore forex, synthetic indices, stocks, and commodities on an all-in-one platform.', ), image: SyntheticIndices, - alt: 'syntethic indices', + key: 1, }, { header: localize('24/7 trading'), @@ -30,7 +30,7 @@ const card_content = [ 'Trade round-the-clock, even on weekends, with our proprietary synthetic indices.', ), image: Seven, - alt: 'seven', + key: 2, }, { header: localize('Licensed and regulated'), @@ -38,7 +38,7 @@ const card_content = [ 'Trade with a regulated industry pioneer trusted by traders for more than 20 years.', ), image: MinimalRisk, - alt: 'minimal risk', + key: 3, }, ] @@ -117,9 +117,9 @@ const WhyTrader = () => { {card_content.map((card) => { return ( - +
- {card.alt} +
{ - forex + {localize('Forex')} @@ -70,12 +70,7 @@ const AvailableMarkets = () => { - synthetic indices + {localize('Synthetic indices')} @@ -97,12 +92,7 @@ const AvailableMarkets = () => { - commodities + {localize('Commodities')} @@ -122,12 +112,7 @@ const AvailableMarkets = () => { - stock indices + {localize('Stock indices')} diff --git a/src/pages/trade-types/margin/_why-trade-margin.js b/src/pages/trade-types/margin/_why-trade-margin.js index 45c8570fdca..80995fac4ec 100644 --- a/src/pages/trade-types/margin/_why-trade-margin.js +++ b/src/pages/trade-types/margin/_why-trade-margin.js @@ -23,7 +23,7 @@ const WhyTradeMargin = () => { - high leverage + {localize('High leverage, low spreads')} @@ -38,7 +38,7 @@ const WhyTradeMargin = () => { - synthetic indices + {localize('All favourite markets available')} @@ -49,7 +49,7 @@ const WhyTradeMargin = () => { - maximize potential profit + {localize('Go long and short')} @@ -60,7 +60,7 @@ const WhyTradeMargin = () => { - friendly support + {localize('Expert and friendly support')} @@ -69,7 +69,7 @@ const WhyTradeMargin = () => { - instant access + {localize('Instant access')} diff --git a/src/pages/trade-types/multiplier/_available-trades.js b/src/pages/trade-types/multiplier/_available-trades.js index 6a5e09389c2..e290412c394 100644 --- a/src/pages/trade-types/multiplier/_available-trades.js +++ b/src/pages/trade-types/multiplier/_available-trades.js @@ -164,20 +164,10 @@ const Card = ({ display_name, active_tab, onTabChange, name }) => { onTabChange(name)}> {active_tab === 'Forex' && ( - + )} {active_tab === 'Synthetic Indices' && ( - + )} {display_name} diff --git a/src/pages/trade-types/multiplier/_how-multiplier-works.js b/src/pages/trade-types/multiplier/_how-multiplier-works.js index bcec30dc3e7..0409f8f4b31 100644 --- a/src/pages/trade-types/multiplier/_how-multiplier-works.js +++ b/src/pages/trade-types/multiplier/_how-multiplier-works.js @@ -115,7 +115,7 @@ const HowOptionsWorks = () => {
- define your position +
{localize('Define your position')}
@@ -129,7 +129,7 @@ const HowOptionsWorks = () => {
- set optional parameters +
{localize('Set optional parameters')}
@@ -142,7 +142,7 @@ const HowOptionsWorks = () => {
- purchase your contract +
{localize('Purchase your contract')}
diff --git a/src/pages/trade-types/multiplier/_markets-available.js b/src/pages/trade-types/multiplier/_markets-available.js index 310bdc8aac9..80f3f19ff21 100644 --- a/src/pages/trade-types/multiplier/_markets-available.js +++ b/src/pages/trade-types/multiplier/_markets-available.js @@ -48,7 +48,7 @@ const MarketsAvailable = () => { - forex + {localize('Forex')} @@ -68,12 +68,7 @@ const MarketsAvailable = () => { - synthetic indices + {localize('Synthetic indices')} diff --git a/src/pages/trade-types/multiplier/_what-are-multipliers.js b/src/pages/trade-types/multiplier/_what-are-multipliers.js index 6c4dbf5d50d..34ad9c76b8c 100644 --- a/src/pages/trade-types/multiplier/_what-are-multipliers.js +++ b/src/pages/trade-types/multiplier/_what-are-multipliers.js @@ -253,7 +253,7 @@ const WhatAreOptions = () => {
- minimal risk +
{localize('Better risk management')} @@ -266,7 +266,7 @@ const WhatAreOptions = () => {
- full control +
{localize('Increased market exposure')} @@ -279,7 +279,7 @@ const WhatAreOptions = () => {
- responsive platform +
{localize('Secure, responsive platform')} @@ -292,7 +292,7 @@ const WhatAreOptions = () => {
- friendly support +
{localize('Expert and friendly support')} @@ -303,7 +303,7 @@ const WhatAreOptions = () => {
- seven +
{localize('Trade 24/7, 365 days a year')} @@ -316,7 +316,7 @@ const WhatAreOptions = () => {
- crash boom +
{localize('Crash/Boom indices')} diff --git a/src/pages/trade-types/options/_how-options-works.js b/src/pages/trade-types/options/_how-options-works.js index be068a9d6a4..35195d2ad64 100644 --- a/src/pages/trade-types/options/_how-options-works.js +++ b/src/pages/trade-types/options/_how-options-works.js @@ -86,7 +86,7 @@ const HowOptionsWorks = () => {
- define your position +
{localize('Define your position')} @@ -101,7 +101,7 @@ const HowOptionsWorks = () => {
- get quote +
{localize('Get quote')}
@@ -114,7 +114,7 @@ const HowOptionsWorks = () => {
- purchase your contract +
{localize('Purchase your contract')} diff --git a/src/pages/trade-types/options/_markets-available.js b/src/pages/trade-types/options/_markets-available.js index 6d00e4b80d0..6c2b49ca04c 100644 --- a/src/pages/trade-types/options/_markets-available.js +++ b/src/pages/trade-types/options/_markets-available.js @@ -50,7 +50,7 @@ const MarketsAvailable = () => { - forex + {localize('Forex')} @@ -70,12 +70,7 @@ const MarketsAvailable = () => { - synthetic indices + {localize('Synthetic indices')} @@ -97,12 +92,7 @@ const MarketsAvailable = () => { - commodities + {localize('Commodities')} @@ -122,12 +112,7 @@ const MarketsAvailable = () => { - stock indices + {localize('Stock indices')} diff --git a/src/pages/trade-types/options/_what-are-options.js b/src/pages/trade-types/options/_what-are-options.js index 98fcea78988..b5e8846c0db 100644 --- a/src/pages/trade-types/options/_what-are-options.js +++ b/src/pages/trade-types/options/_what-are-options.js @@ -66,7 +66,7 @@ const WhatAreOptions = () => {
- fixed payout +
{localize('Fixed, predictable payout')} @@ -79,7 +79,7 @@ const WhatAreOptions = () => {
- synthetic indices +
{localize('All favourite markets and more')} @@ -92,7 +92,7 @@ const WhatAreOptions = () => {
- instant access +
{localize('Instant access')} @@ -101,7 +101,7 @@ const WhatAreOptions = () => {
- user friendly platforms +
{localize('User-friendly platforms with powerful chart widgets')} @@ -114,7 +114,7 @@ const WhatAreOptions = () => {
- flexible trade types +
{localize('Flexible trade types with minimal capital requirements')}