Skip to content

Commit

Permalink
chore: update the broker name in mt5 trade modal (#9498)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-deriv committed Jul 31, 2023
1 parent e17e9d9 commit e1ea94c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@
&__spec-text {
font-family: 'Courier', monospace;
overflow: hidden;
&-broker {
margin-left: 4rem;
}
}
&__download-center {
border-top: 2px solid var(--general-section-1);
Expand Down
12 changes: 9 additions & 3 deletions packages/cfd/src/Containers/dmt5-trade-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import classNames from 'classnames';
import { Text, Button, Icon, Money, Popover } from '@deriv/components';
import { TPasswordBoxProps, TTradingPlatformAccounts } from '../Components/props.types';
import { DetailsOfEachMT5Loginid } from '@deriv/api-types';
Expand Down Expand Up @@ -33,11 +34,16 @@ type TMT5TradeModalProps = {
export type TSpecBoxProps = {
value: string | undefined;
is_bold?: boolean;
is_broker?: boolean;
};

const SpecBox = ({ value, is_bold }: TSpecBoxProps) => (
const SpecBox = ({ value, is_bold, is_broker }: TSpecBoxProps) => (
<div className='cfd-trade-modal__spec-box'>
<Text size='xs' weight={is_bold ? 'bold' : ''} className='cfd-trade-modal__spec-text'>
<Text
size='xs'
weight={is_bold ? 'bold' : ''}
className={classNames('cfd-trade-modal__spec-text', { 'cfd-trade-modal__spec-text-broker': is_broker })}
>
{value}
</Text>
<CFDAccountCopy text={value} className='cfd-trade-modal__spec-copy' />
Expand Down Expand Up @@ -150,7 +156,7 @@ const DMT5TradeModal = ({
<div className='cfd-trade-modal__login-specs'>
<div className='cfd-trade-modal__login-specs-item'>
<Text className='cfd-trade-modal--paragraph'>{localize('Broker')}</Text>
<SpecBox is_bold value={'Deriv Limited'} />
<SpecBox is_bold is_broker value={'Deriv Holdings (Guernsey) Limited'} />
</div>
<div className='cfd-trade-modal__login-specs-item'>
<Text className='cfd-trade-modal--paragraph'>{localize('Server')}</Text>
Expand Down
2 changes: 1 addition & 1 deletion packages/cfd/src/Helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const DXTRADE_IOS_APP_URL = 'https://apps.apple.com/us/app/deriv-x/id1563337503'
const DXTRADE_ANDROID_APP_URL = 'https://play.google.com/store/apps/details?id=com.deriv.dx';
const DXTRADE_HUAWEI_APP_URL = 'https://appgallery.huawei.com/app/C104633219';

const getBrokerName = () => 'Deriv Limited';
const getBrokerName = () => 'Deriv Holdings (Guernsey) Limited';

const getTopUpConfig = () => {
return {
Expand Down

1 comment on commit e1ea94c

@vercel
Copy link

@vercel vercel bot commented on e1ea94c Jul 31, 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.binary.sx
binary.sx
deriv-app-git-master.binary.sx
deriv-app.vercel.app

Please sign in to comment.