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.

Mahdiyeh/Fix: compare_accounts_content_for_eu_conuntries #1888

Merged

Conversation

mahdiyeh-deriv
Copy link
Contributor

Changes:

  • ...

Type of change

  • Bug fix
  • New feature
  • Update feature
  • Refactor code
  • Translation to code
  • Translation to crowdin
  • Script configuration
  • Improve performance
  • Style only
  • Dependency update
  • Documentation update
  • Release

@vercel
Copy link

vercel bot commented Jul 7, 2021

@mahdiyeh-fs is attempting to deploy a commit to the Deriv Team on Vercel.

A member of the Team first needs to authorize it.

@mahdiyeh-deriv mahdiyeh-deriv changed the title fix_compare_accounts_content_for_eu_conuntries Mahdiyeh/Fix: compare_accounts_content_for_eu_conuntries Jul 7, 2021
@vercel
Copy link

vercel bot commented Jul 7, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/deriv/deriv-com/6haFacNyR7wssBsYPUyo8g4ik862
✅ Preview: https://deriv-com-git-fork-mahdiyeh-fs-fixcomparemt5accoutscontent.binary.sx

@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 50
🟢 Accessibility 98
🟢 Best practices 93
🟠 SEO 85
🟠 PWA 75

Lighthouse ran on https://deriv-com-git-fork-mahdiyeh-fs-fixcomparemt5accoutscontent.binary.sx/

return (
<ClientCard key={idx}>
<ClientCard key={idx} style={{display : show_content ? 'block' : 'none'}}>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please pass the styles in as props into the styled component ClientCard on line 61 instead of inline styling.

Comment on lines 141 to 152
let show_content = false

if (item.show_eu !== undefined) {
if(is_eu_country) {
show_content = item.show_eu
} else {
show_content = !item.show_eu
}
} else {
show_content = true
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this doing nested logic here. Can we just do conditional checks such that is_eu_country ? <RenderOurEuComponent /> : <RenderOurNonEuComponent />?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@ghost
Copy link

ghost commented Jul 9, 2021

Any text changes that require translations will need to be branched of Crowdin branch. You can rebase this branch to Crowdin.

@mahdiyeh-deriv mahdiyeh-deriv changed the base branch from master to crowdin July 11, 2021 08:45
@mahdiyeh-deriv mahdiyeh-deriv requested a review from a user July 11, 2021 08:48
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM 👍

},
{
header: <Localize translate_text="Financial" />,
text: (
<Localize translate_text="Trade major (standard and micro-lots) and minor currency pairs, commodities, cryptocurrencies, and stocks & indices with high leverage." />
<Localize translate_text=" Trade major (standard and micro-lots) and minor currency pairs, stocks, stock indices, commodities, and cryptocurrencies." />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Localize translate_text=" Trade major (standard and micro-lots) and minor currency pairs, stocks, stock indices, commodities, and cryptocurrencies." />
<Localize translate_text="Trade major (standard and micro-lots) and minor currency pairs, stocks, stock indices, commodities, and cryptocurrencies." />

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might have been a typo here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, fixed

@mahdiyeh-deriv mahdiyeh-deriv force-pushed the fix_compare_mt5_accouts_content_ branch from 57343f0 to e7a4438 Compare July 12, 2021 05:39
@suthesank suthesank merged commit fd9d1d5 into binary-com:crowdin Jul 16, 2021
njazuli-deriv pushed a commit to njazuli-deriv/deriv-com that referenced this pull request Jul 22, 2021
…1888)

* fix compare mt5 accounts content for eu and non_eu clients

* fix typo
suthesank added a commit that referenced this pull request Aug 23, 2021
* Kevin/update stock indices to stocks and indices on header, footer, and market (#1826)

* update stock indices to stocks and indices on header, footer, and market

* add dev comments

* Nuri/Feat : Deriv x seo changes (#1875)

* p added seo for Deriv X pages

* added back h2 to what is deriv x text

* Suthesh/add-jump-indices (#1856)

* added new metals, energy and jump indices

* minimised svg

* fiona / Change margin to CFDs (#1841)

* add markets available for CFD trading

* add start trading CFDs on deriv section

* add styling for cfd page sections

* add more CFDs page sections

* add cfd page

* change margin to cfd

* update margin to cfds

* minify svg file

* fix: missing s and currencies

* triger deployment

* trigger deployment

* update margin-calculator link

* fix: spacing on title

* align checklist icon with titles in responsive mode

* remove real Deriv X

* update text

* remove extra space

* change margin and swap calculator

* implement pr changes

* delete fragment

* add redirect to cfds page

* redirect margin to cfds

* add markets available for CFD trading

* add start trading CFDs on deriv section

* add styling for cfd page sections

* add more CFDs page sections

* add cfd page

* change margin to cfd

* update margin to cfds

* minify svg file

* fix: missing s and currencies

* update margin-calculator link

* fix: spacing on title

* align checklist icon with titles in responsive mode

* remove real Deriv X

* update text

* remove extra space

* change margin and swap calculator

* implement pr changes

* delete fragment

* add redirect to cfds page

* redirect margin to cfds

* remove unused import

* delete margin folder

Co-authored-by: fiona-deriv <[email protected]>

* Amina/Footer update (#1910)

* pass_variables_to_footer_text

* messages.json-extract

* Revert "messages.json-extract"

This reverts commit 1bb1e61.

revert messages.json

* suthesh/update-translations-crowdin (#1911)

* added new strings for translations

* added strings from Amina's PR

* downloaded latest translations (incomplete)

* Mahdiyeh/Fix: compare_accounts_content_for_eu_conuntries (#1888)

* fix compare mt5 accounts content for eu and non_eu clients

* fix typo

* Al-amin/35136/Deriv p2p landing page update (#1906)

* updating Deriv P2P landing page

* added Deriv P2P articles on Help centre

* address PR comment

* addressed QA comments

* handle youtube video mobile view

* updated P2P numbers card

* updated the iframe mobile view

* addressed PR comment

* nikolai.berestevich/text/update numbers on story page (#1917)

Co-authored-by: Nikolai Berestevich <[email protected]>

* change sentences (#1916)

* added comma and updated crowdin platform (#1983)

* replace bet with speculate (#1977)

* enable derivx cfd in non eu country (#1970)

* Kevin/DMT5 Signal change text content (#1951)

* change text content

* fix typo

* Revert "Kevin/DMT5 Signal change text content (#1951)" (#1989)

This reverts commit d30b025.

* update hyperlink  with second branch (#1941)

* Revert "update hyperlink  with second branch (#1941)" (#1991)

This reverts commit f7c542f.

* downloaded latest translations (#1999)

* Suthesh/update crowdin hotfix (#2002)

* extracted and uploaded

* downloaded latest translations

* removed space (#2006)

* downloaded latest translations (#2012)

* Suthesh/crowdin hotfix text (#2020)

* edited text, extracted and uploaded

* updated ach

* downloaded latest translations

Co-authored-by: Suthesan <[email protected]>

Co-authored-by: Kevin <[email protected]>
Co-authored-by: njazuli-deriv <[email protected]>
Co-authored-by: fiona-deriv <[email protected]>
Co-authored-by: fiona-deriv <[email protected]>
Co-authored-by: amina-deriv <[email protected]>
Co-authored-by: mahdiyeh-fs <[email protected]>
Co-authored-by: Al-amin Abdulkareem <[email protected]>
Co-authored-by: Nikolai Berestevich <[email protected]>
Co-authored-by: Nikolai Berestevich <[email protected]>
Co-authored-by: Habib Binary <[email protected]>
Co-authored-by: behnaz-fs <[email protected]>
Co-authored-by: Suthesan <[email protected]>
suthesank pushed a commit to suthesank/deriv-com that referenced this pull request Aug 25, 2021
…1888)

* fix compare mt5 accounts content for eu and non_eu clients

* fix typo
khalid-deriv pushed a commit to khalid-deriv/deriv-com that referenced this pull request Dec 28, 2021
* Kevin/update stock indices to stocks and indices on header, footer, and market (binary-com#1826)

* update stock indices to stocks and indices on header, footer, and market

* add dev comments

* Nuri/Feat : Deriv x seo changes (binary-com#1875)

* p added seo for Deriv X pages

* added back h2 to what is deriv x text

* Suthesh/add-jump-indices (binary-com#1856)

* added new metals, energy and jump indices

* minimised svg

* fiona / Change margin to CFDs (binary-com#1841)

* add markets available for CFD trading

* add start trading CFDs on deriv section

* add styling for cfd page sections

* add more CFDs page sections

* add cfd page

* change margin to cfd

* update margin to cfds

* minify svg file

* fix: missing s and currencies

* triger deployment

* trigger deployment

* update margin-calculator link

* fix: spacing on title

* align checklist icon with titles in responsive mode

* remove real Deriv X

* update text

* remove extra space

* change margin and swap calculator

* implement pr changes

* delete fragment

* add redirect to cfds page

* redirect margin to cfds

* add markets available for CFD trading

* add start trading CFDs on deriv section

* add styling for cfd page sections

* add more CFDs page sections

* add cfd page

* change margin to cfd

* update margin to cfds

* minify svg file

* fix: missing s and currencies

* update margin-calculator link

* fix: spacing on title

* align checklist icon with titles in responsive mode

* remove real Deriv X

* update text

* remove extra space

* change margin and swap calculator

* implement pr changes

* delete fragment

* add redirect to cfds page

* redirect margin to cfds

* remove unused import

* delete margin folder

Co-authored-by: fiona-deriv <[email protected]>

* Amina/Footer update (binary-com#1910)

* pass_variables_to_footer_text

* messages.json-extract

* Revert "messages.json-extract"

This reverts commit 1bb1e61.

revert messages.json

* suthesh/update-translations-crowdin (binary-com#1911)

* added new strings for translations

* added strings from Amina's PR

* downloaded latest translations (incomplete)

* Mahdiyeh/Fix: compare_accounts_content_for_eu_conuntries (binary-com#1888)

* fix compare mt5 accounts content for eu and non_eu clients

* fix typo

* Al-amin/35136/Deriv p2p landing page update (binary-com#1906)

* updating Deriv P2P landing page

* added Deriv P2P articles on Help centre

* address PR comment

* addressed QA comments

* handle youtube video mobile view

* updated P2P numbers card

* updated the iframe mobile view

* addressed PR comment

* nikolai.berestevich/text/update numbers on story page (binary-com#1917)

Co-authored-by: Nikolai Berestevich <[email protected]>

* change sentences (binary-com#1916)

* added comma and updated crowdin platform (binary-com#1983)

* replace bet with speculate (binary-com#1977)

* enable derivx cfd in non eu country (binary-com#1970)

* Kevin/DMT5 Signal change text content (binary-com#1951)

* change text content

* fix typo

* Revert "Kevin/DMT5 Signal change text content (binary-com#1951)" (binary-com#1989)

This reverts commit d30b025.

* update hyperlink  with second branch (binary-com#1941)

* Revert "update hyperlink  with second branch (binary-com#1941)" (binary-com#1991)

This reverts commit f7c542f.

* downloaded latest translations (binary-com#1999)

* Suthesh/update crowdin hotfix (binary-com#2002)

* extracted and uploaded

* downloaded latest translations

* removed space (binary-com#2006)

* downloaded latest translations (binary-com#2012)

* Suthesh/crowdin hotfix text (binary-com#2020)

* edited text, extracted and uploaded

* updated ach

* downloaded latest translations

Co-authored-by: Suthesan <[email protected]>

Co-authored-by: Kevin <[email protected]>
Co-authored-by: njazuli-deriv <[email protected]>
Co-authored-by: fiona-deriv <[email protected]>
Co-authored-by: fiona-deriv <[email protected]>
Co-authored-by: amina-deriv <[email protected]>
Co-authored-by: mahdiyeh-fs <[email protected]>
Co-authored-by: Al-amin Abdulkareem <[email protected]>
Co-authored-by: Nikolai Berestevich <[email protected]>
Co-authored-by: Nikolai Berestevich <[email protected]>
Co-authored-by: Habib Binary <[email protected]>
Co-authored-by: behnaz-fs <[email protected]>
Co-authored-by: Suthesan <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants