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.

Nuri/update: change help content for closing account #1945

Merged
Merged
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
30 changes: 25 additions & 5 deletions src/pages/help-centre/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { usePageLoaded } from 'components/hooks/use-page-loaded'
import { deriv_app_url } from 'common/constants'
import { Text } from 'components/elements'
import { localize, Localize, WithIntl } from 'components/localization'
import device from 'themes/device.js'

const StyledList = styled.ul`
list-style: unset;
Expand All @@ -15,6 +16,11 @@ const StyledListItem = styled.li`
color: var(--color-black-3);
margin-top: 1.6rem;
`
const StyledLink = styled(ExternalLink)`
@media ${device.tabletL} {
font-size: 16px;
}
`

const WhoCanOpenAnAccount = () => (
<ArticleWrapper>
Expand Down Expand Up @@ -45,7 +51,7 @@ const ChangingPersonalDetails = () => (
translate_text="If your account is not authenticated, you can change your name, date of birth, or citizenship by going to <0>Settings ></0> <1>Personal details</1>."
components={[
<strong key={0} />,
<ExternalLink
<StyledLink
to={`${deriv_app_url}/account/personal-details`}
external="true"
weight="bold"
Expand Down Expand Up @@ -86,7 +92,7 @@ const RecoveringPassword = () => (
<Localize
translate_text="If you’ve forgotten your Google/Facebook account password, you can <0>reset your Deriv account password</0> to log in to Deriv."
components={[
<ExternalLink
<StyledLink
to="/reset-password"
external="true"
weight="bold"
Expand All @@ -104,10 +110,24 @@ const CloseAccount = () => (
<ArticleWrapper>
<StyledHeader as="h4">{localize('How can I close my account?')}</StyledHeader>
<Text>
<Localize
translate_text="To close your account, go to <0>Deactivate account.</0> "
components={[
<StyledLink
to={`${deriv_app_url}/account/deactivate-account`}
target="_blank"
weight="bold"
rel="noopener noreferrer"
key={0}
/>,
]}
/>
</Text>
<StyledText>
{localize(
'Before closing your account, please close all your open positions and withdraw all the funds in your account. After that, you may contact us with your request.',
'Before closing your Deriv account, close all your open positions and withdraw all the funds in your trading accounts, including DMT5.',
)}
</Text>
</StyledText>
</ArticleWrapper>
)

Expand All @@ -121,7 +141,7 @@ const UnsubscribeEmail = () => (
translate_text="You can do this easily by going to <0>Settings > Profile ></0> <1>Personal details</1>. Uncheck the email preference box, and click the ‘Submit’ button to unsubscribe."
components={[
<strong key={0} />,
<ExternalLink
<StyledLink
to={`${deriv_app_url}/account/personal-details`}
target="_blank"
external="true"
Expand Down