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.

sean/fix: updated text for UK and non-UK clients #1146

Merged
merged 2 commits into from Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/common/country-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ const eu_countries = [
]

export const isEuCountry = (clients_country) => eu_countries.includes(clients_country)

export const isUK = (clients_country) => clients_country === 'gb'
11 changes: 8 additions & 3 deletions src/pages/responsible-trading/_trading-limits.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import styled from 'styled-components'
import { Container, Flex, Show, Box } from 'components/containers'
import { Header, LocalizedLinkText, Text } from 'components/elements'
import { isUK } from 'common/country-base'
import { Localize, localize } from 'components/localization'
import { TimelineTick } from 'components/elements/timeline'
import device from 'themes/device'
Expand Down Expand Up @@ -214,9 +215,13 @@ const TradingLimits = () => {
</TimelineTick.Item>
<TimelineTick.Item>
<Text>
{localize(
'If you do not wish to renew the self-exclusion and you make a request to trade again, there will be a cooling-off period of 1 day before you are allowed access to our site. Please note that email is insufficient and your request must be made by phone.',
)}
{isUK
? localize(
'If you do not wish to renew the self-exclusion and you make a request to trade again, there will be a cooling-off period of 1 day before you are allowed access to our site. Please note that you must contact our Customer Support team by calling + 447723580049. It is not enough to send an email.',
)
: localize(
'If you do not wish to renew the self-exclusion and you make a request to trade again, there will be a cooling-off period of 1 day before you are allowed access to our site. If you’re a UK resident, please note that you must contact our Customer Support team by calling + 447723580049. It is not enough to send an email.',
)}
</Text>
</TimelineTick.Item>
</TimelineTick>
Expand Down