Skip to content

Commit

Permalink
chore: update description for deriv x enter password modal (#11338)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv committed Nov 10, 2023
1 parent 9d02147 commit e307a0b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { useActiveWalletAccount } from '@deriv/api';
import { WalletButton } from '../../../../components/Base';
import useDevice from '../../../../hooks/useDevice';
import PasswordShowIcon from '../../../../public/images/ic-password-show.svg';
Expand Down Expand Up @@ -28,12 +29,16 @@ const EnterPassword: React.FC<TProps> = ({
}) => {
const { isDesktop } = useDevice();
const title = PlatformDetails[platform].title;
const { data } = useActiveWalletAccount();
const accountType = data?.is_virtual ? 'Demo' : 'Real';
const marketTypeTitle = platform === 'dxtrade' ? accountType : marketType;

return (
<div className='wallets-enter-password'>
<div className='wallets-enter-password--container'>
{isDesktop && <div className='wallets-enter-password-title'>Enter your {title} password</div>}
<span className='wallets-enter-password-subtitle'>
Enter your {title} password to add a {title} {marketType} account.
Enter your {title} password to add a {title} {marketTypeTitle} account.
</span>
<div className='wallets-enter-password-input'>
<input onChange={onPasswordChange} placeholder={`${title} password`} type='password' />
Expand Down

1 comment on commit e307a0b

@vercel
Copy link

@vercel vercel bot commented on e307a0b Nov 10, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.vercel.app
deriv-app.binary.sx
binary.sx
deriv-app-git-master.binary.sx

Please sign in to comment.