-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bahar/landing_on_dtrader_responsive_page_frequently_after_clicking_ca…
…shier (#4917) * landing_on_dtrader_responsive_page_frequently_after_clicking_cashier_or_settings_option * fix_issue_with_account_setting * hide_more_options * add_derivgo_condition_for_hiding_option * refactor * chore: renamed variables * fix_issue Co-authored-by: yashim-deriv <yashim@deriv.com>
- Loading branch information
1 parent
699dc4a
commit 2e43822
Showing
13 changed files
with
122 additions
and
83 deletions.
There are no files selected for viewing
30 changes: 20 additions & 10 deletions
30
packages/account/src/Components/account-limits/account-limits-article.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
import PropTypes from 'prop-types'; | ||
import * as React from 'react'; | ||
import { StaticUrl } from '@deriv/components'; | ||
import { Localize, localize } from '@deriv/translations'; | ||
import AccountArticle from 'Components/article/article.jsx'; | ||
|
||
const AccountLimitsArticle = () => { | ||
return ( | ||
<AccountArticle | ||
title={localize('Account limits')} | ||
descriptions={[ | ||
<Localize key={0} i18n_default_text='These are default limits that we apply to your accounts.' />, | ||
const AccountLimitsArticle = ({ is_from_derivgo }) => { | ||
const getDescription = () => { | ||
const description = [ | ||
<Localize key={0} i18n_default_text='These are default limits that we apply to your accounts.' />, | ||
]; | ||
|
||
if (!is_from_derivgo) { | ||
description.push( | ||
<Localize | ||
key={1} | ||
i18n_default_text='To learn more about trading limits and how they apply, please go to the <0>Help Centre.</0>' | ||
components={[<StaticUrl key={0} className='link' href='/help-centre/trading/#trading-limits' />]} | ||
/>, | ||
]} | ||
/> | ||
); | ||
/> | ||
); | ||
} | ||
return description; | ||
}; | ||
|
||
return <AccountArticle title={localize('Account limits')} descriptions={getDescription()} />; | ||
}; | ||
|
||
AccountLimitsArticle.propTypes = { | ||
is_from_derivgo: PropTypes.bool, | ||
}; | ||
|
||
export default AccountLimitsArticle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/account/src/Sections/Security/AccountLimits/account-limits.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
2e43822
There was a problem hiding this comment.
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-git-master.binary.sx
deriv-app.binary.sx
binary.sx