Skip to content

Commit

Permalink
Merge pull request #40 from suisin-deriv/suisin/74073/ts_migration_ac…
Browse files Browse the repository at this point in the history
…count_limits_article

Suisin/74073/ts migration account limits article
  • Loading branch information
niloofar-deriv committed Jan 12, 2023
2 parents 98443e3 + f6b32dd commit b53620e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('<AccountLimitsArticle/>', () => {

it('should go to help-centre page if the Help Centre link on the text is clicked', () => {
render(<AccountLimitsArticle />);
expect(screen.getByText('Help Centre.').closest('a')).toHaveAttribute(
expect(screen.getByText('Help Centre.')).toHaveAttribute(
'href',
'https://deriv.com/help-centre/trading/#trading-limits'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { StaticUrl } from '@deriv/components';
import { Localize, localize } from '@deriv/translations';
import AccountArticle from 'Components/article';

const AccountLimitsArticle = ({ is_from_derivgo }) => {
type TAccountLimitsArticle = {
is_from_derivgo?: boolean;
};

const AccountLimitsArticle = ({ is_from_derivgo }: TAccountLimitsArticle) => {
const getDescription = () => {
const description = [
<Localize key={0} i18n_default_text='These are default limits that we apply to your accounts.' />,
Expand Down

0 comments on commit b53620e

Please sign in to comment.