Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit fd9d1d5

Browse files
Mahdiyeh/Fix: compare_accounts_content_for_eu_conuntries (#1888)
* fix compare mt5 accounts content for eu and non_eu clients * fix typo
1 parent 426bfc7 commit fd9d1d5

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/pages/dmt5/_flexibility.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import FinancialStpIcon from 'images/svg/financial-stp.svg'
88
import FinancialIcon from 'images/svg/financial.svg'
99
import SyntheticIcon from 'images/svg/synthetic.svg'
1010
import device from 'themes/device'
11+
import { DerivStore } from 'store'
1112

1213
const BaseIconStyle = css`
1314
@media ${device.mobileL} {
@@ -32,20 +33,31 @@ const content = [
3233
<Localize translate_text="Trade CFDs on our exclusive, proprietary synthetic indices 24/7 which simulate real-world market movements." />
3334
),
3435
icon: <StyledSyntheticIcon src={SyntheticIcon} alt="synthetic icon" />,
36+
show_always: true
3537
},
3638
{
3739
header: <Localize translate_text="Financial" />,
3840
text: (
39-
<Localize translate_text="Trade major (standard and micro-lots) and minor currency pairs, commodities, cryptocurrencies, and stocks & indices with high leverage." />
41+
<Localize translate_text="Trade major (standard and micro-lots) and minor currency pairs, stocks, stock indices, commodities, and cryptocurrencies." />
4042
),
4143
icon: <StyledFinancialIcon src={FinancialIcon} alt="financial icon" />,
44+
show_eu: true
45+
},
46+
{
47+
header: <Localize translate_text="Financial" />,
48+
text: (
49+
<Localize translate_text="Trade major (standard and micro-lots) and minor currency pairs, stocks, stock indices, commodities, and cryptocurrencies with high leverage." />
50+
),
51+
icon: <StyledFinancialIcon src={FinancialIcon} alt="financial icon" />,
52+
show_eu: false
4253
},
4354
{
4455
header: <Localize translate_text="Financial STP" />,
4556
text: (
4657
<Localize translate_text="Trade major, minor, and exotic currency pairs, and cryptocurrencies with tight spreads and higher trade volumes, straight to the market." />
4758
),
4859
icon: <StyledFinancialStpIcon src={FinancialStpIcon} alt="financial stp icon" />,
60+
show_always: true
4961
},
5062
]
5163
const Section = styled(SectionContainer)`
@@ -112,6 +124,8 @@ const StyledText = styled(Text)`
112124
`
113125

114126
const Flexibility = () => {
127+
const { is_eu_country } = React.useContext(DerivStore);
128+
115129
return (
116130
<Section>
117131
<StyledHeader
@@ -127,7 +141,7 @@ const Flexibility = () => {
127141
<Flex mb="4rem" tablet_direction="column" tablet_ai="center" tablet={{ m: '0' }}>
128142
{content.map((item, idx) => {
129143
return (
130-
<ClientCard key={idx}>
144+
((is_eu_country && item.show_eu) || (!is_eu_country && !item.show_eu) || item.show_always) && <ClientCard key={idx}>
131145
<Flex height="unset" ai="center" mobileL={{ mb: '8px' }}>
132146
<StyledHeader
133147
mobile_margin="unset"
@@ -157,4 +171,4 @@ const Flexibility = () => {
157171
)
158172
}
159173

160-
export default Flexibility
174+
export default Flexibility

0 commit comments

Comments
 (0)