diff --git a/packages/account/src/Components/Routes/__tests__/route-with-sub-routes.spec.tsx b/packages/account/src/Components/Routes/__tests__/route-with-sub-routes.spec.tsx
index 6ab27da42485..d0ec96edeb31 100644
--- a/packages/account/src/Components/Routes/__tests__/route-with-sub-routes.spec.tsx
+++ b/packages/account/src/Components/Routes/__tests__/route-with-sub-routes.spec.tsx
@@ -2,7 +2,6 @@ import React from 'react';
import { render, screen } from '@testing-library/react';
import { RouteWithSubRoutesRender } from '../route-with-sub-routes';
import { Redirect } from 'react-router-dom';
-import { PlatformContext } from '@deriv/shared';
jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),
@@ -21,22 +20,14 @@ afterEach(() => {
describe('', () => {
it('should render one component', () => {
- render(
-
-
-
- );
+ render();
expect(screen.getByText(/Route loaded/)).toBeInTheDocument();
});
it('should have props as passed as route', () => {
const route = { path: '/test', component: Redirect, title: '', exact: true, to: '/root' };
- render(
-
-
-
- );
+ render();
expect(screen.getByText(/route loaded true \/test/i)).toBeInTheDocument();
});
});
diff --git a/packages/account/src/Components/account-limits/__tests__/account-limits.spec.tsx b/packages/account/src/Components/account-limits/__tests__/account-limits.spec.tsx
index f521a336dcdd..a724344cb2ca 100644
--- a/packages/account/src/Components/account-limits/__tests__/account-limits.spec.tsx
+++ b/packages/account/src/Components/account-limits/__tests__/account-limits.spec.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { screen, render } from '@testing-library/react';
-import { formatMoney, isDesktop, isMobile, PlatformContext } from '@deriv/shared';
+import { formatMoney, isDesktop, isMobile } from '@deriv/shared';
import AccountLimits from '../account-limits';
import { BrowserRouter } from 'react-router-dom';
import { StoreProvider, mockStore } from '@deriv/stores';
@@ -362,7 +362,7 @@ describe('', () => {
).toBeInTheDocument();
});
- it('withdrawal_limits_table should show `Total withdrawal limit` if is_fully_authenticated is false and is_appstore is true', () => {
+ it('withdrawal_limits_table should show `Total withdrawal allowed` when is_fully_authenticated is false', () => {
store = mockStore({
client: {
...mock.client,
@@ -370,86 +370,14 @@ describe('', () => {
},
});
render(
-
-
-
-
-
-
-
- );
- expect(screen.getByText(/total withdrawal limit/i)).toBeInTheDocument();
- });
-
- it('withdrawal_limits_table should show `Total withdrawal allowed` when is_fully_authenticated is false and is_appstore is true', () => {
- store = mockStore({
- client: {
- ...mock.client,
- is_fully_authenticated: false,
- },
- });
- render(
-
-
-
-
-
+
+
+
);
expect(screen.getByText(/total withdrawal allowed/i)).toBeInTheDocument();
});
- it('withdrawal_limits_table should show the verfiy button when is_fully_authenticated is false and is_appstore is true', () => {
- store = mockStore({
- client: {
- ...mock.client,
- is_fully_authenticated: false,
- },
- });
- render(
-
-
-
-
-
-
-
- );
- expect(screen.getByText(/to increase limit please verify your identity/i)).toBeInTheDocument();
- expect(
- screen.getByRole('link', {
- name: /verify/i,
- })
- ).toHaveAttribute('href', '/account/proof-of-identity');
- const { num_of_days_limit } = store.client.account_limits;
- expect(formatMoney).toHaveBeenCalledWith(store.client.currency, num_of_days_limit, true);
- });
-
- it('withdrawal_limits_table should show total withdrawn and withdrawn remaining details', () => {
- store = mockStore({
- client: {
- ...mock.client,
- is_fully_authenticated: false,
- },
- });
- render(
-
-
-
-
-
-
-
- );
- const { withdrawal_since_inception_monetary, remainder } = store.client.account_limits;
-
- expect(screen.getByText(/total withdrawn/i)).toBeInTheDocument();
- expect(formatMoney).toHaveBeenCalledWith(store.client.currency, withdrawal_since_inception_monetary, true);
-
- expect(screen.getByText(/maximum withdrawal remaining/i)).toBeInTheDocument();
- expect(formatMoney).toHaveBeenCalledWith(store.client.currency, remainder, true);
- });
-
- it('should show limit_notice message when is_appstore is false and is_fully_authenticated is false in mobile mode', () => {
+ it('should show limit_notice message when is_fully_authenticated is false in mobile mode', () => {
store = mockStore({
client: {
...mock.client,
@@ -459,18 +387,16 @@ describe('', () => {
(isMobile as jest.Mock).mockReturnValue(true);
(isDesktop as jest.Mock).mockReturnValue(false);
render(
-
-
-
-
-
-
-
+
+
+
+
+
);
expect(screen.getByText(/stated limits are subject to change without prior notice\./i)).toBeInTheDocument();
});
- it('should not show limit_notice message when is_appstore is false and is_fully_authenticated is false', () => {
+ it('should not show limit_notice message when is_fully_authenticated is false', () => {
store = mockStore({
client: {
...mock.client,
@@ -480,13 +406,11 @@ describe('', () => {
(isMobile as jest.Mock).mockReturnValue(false);
(isDesktop as jest.Mock).mockReturnValue(true);
render(
-
-
-
-
-
-
-
+
+
+
+
+
);
expect(
screen.queryByText(/your account is fully authenticated and your withdrawal limits have been lifted\./i)
diff --git a/packages/account/src/Components/account-limits/account-limits.tsx b/packages/account/src/Components/account-limits/account-limits.tsx
index 171b0e5749b7..49517a7f94a2 100644
--- a/packages/account/src/Components/account-limits/account-limits.tsx
+++ b/packages/account/src/Components/account-limits/account-limits.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import { FormikValues } from 'formik';
import classNames from 'classnames';
-import { formatMoney, isDesktop, isMobile, useIsMounted, PlatformContext } from '@deriv/shared';
+import { formatMoney, isDesktop, isMobile, useIsMounted } from '@deriv/shared';
import { Loading, ThemedScrollbars } from '@deriv/components';
import { Localize, localize } from '@deriv/translations';
import { observer, useStore } from '@deriv/stores';
@@ -37,19 +37,10 @@ const AccountLimits = observer(
should_show_article = true,
}: TAccountLimits) => {
const { client } = useStore();
- const {
- account_limits,
- account_status,
- currency,
- getLimits,
- is_fully_authenticated,
- is_virtual,
- is_switching,
- } = client;
+ const { account_limits, account_status, currency, getLimits, is_virtual, is_switching } = client;
const isMounted = useIsMounted();
const [is_loading, setLoading] = React.useState(true);
const [is_overlay_shown, setIsOverlayShown] = React.useState(false);
- const { is_appstore } = React.useContext(PlatformContext);
const handleGetLimitsResponse = () => {
if (isMounted()) setLoading(false);
@@ -84,13 +75,8 @@ const AccountLimits = observer(
if (is_virtual) {
return (
-
-
+
+
);
}
@@ -237,7 +223,6 @@ const AccountLimits = observer(
{!is_app_settings && (
{
- return is_appstore ? (
-
- ) : (
-
- );
-};
-
-const AccountLimitsVerificationNotice = observer(({ is_appstore }: { is_appstore: boolean }) => {
- const { client } = useStore();
- const { is_fully_authenticated } = client;
- return (
-
-
- {is_appstore && !is_fully_authenticated && (
-
-
- {localize('To increase limit please verify your identity')}
-
-
-
- {localize('Verify')}
-
-
-
- )}
-
- );
-});
-
const WithdrawalLimitsTable = observer(
- ({ is_appstore, num_of_days_limit, withdrawal_since_inception_monetary, remainder }: TWithdrawalLimitsTable) => {
+ ({ num_of_days_limit, withdrawal_since_inception_monetary, remainder }: TWithdrawalLimitsTable) => {
const { client } = useStore();
const { currency, is_fully_authenticated } = client;
return (
@@ -76,7 +36,7 @@ const WithdrawalLimitsTable = observer(
-
+
{formatMoney(currency, num_of_days_limit ?? 0, true)}
@@ -102,17 +62,15 @@ const WithdrawalLimitsTable = observer(
)}
- {!is_appstore && (
-
-
- {is_fully_authenticated ? (
-
- ) : (
-
- )}
-
-
- )}
+
+
+ {is_fully_authenticated ? (
+
+ ) : (
+
+ )}
+
+
);
}
diff --git a/packages/account/src/Components/demo-message/demo-message.tsx b/packages/account/src/Components/demo-message/demo-message.tsx
index 796e2d757bb8..1cb8c1366ebe 100644
--- a/packages/account/src/Components/demo-message/demo-message.tsx
+++ b/packages/account/src/Components/demo-message/demo-message.tsx
@@ -3,13 +3,12 @@ import { localize } from '@deriv/translations';
import IconWithMessage from '../icon-with-message';
type TDemoMessage = {
- has_demo_icon?: boolean;
has_button?: boolean;
};
-const DemoMessage = ({ has_demo_icon, has_button }: TDemoMessage) => (
+const DemoMessage = ({ has_button }: TDemoMessage) => (
diff --git a/packages/account/src/Components/poi/missing-personal-details/__tests__/missing-personal-details.spec.tsx b/packages/account/src/Components/poi/missing-personal-details/__tests__/missing-personal-details.spec.tsx
index 1a30c4cc71a6..624404611a10 100644
--- a/packages/account/src/Components/poi/missing-personal-details/__tests__/missing-personal-details.spec.tsx
+++ b/packages/account/src/Components/poi/missing-personal-details/__tests__/missing-personal-details.spec.tsx
@@ -1,7 +1,6 @@
import React from 'react';
import { BrowserRouter } from 'react-router-dom';
import { render, screen } from '@testing-library/react';
-import { PlatformContext } from '@deriv/shared';
import { MissingPersonalDetails } from '../missing-personal-details';
jest.mock('@deriv/components', () => {
@@ -13,12 +12,7 @@ jest.mock('@deriv/components', () => {
});
describe('', () => {
- const renderWithRouter = component =>
- render(
-
- {component}
-
- );
+ const renderWithRouter = component => render({component});
it('should render the MissingPersonalDetails component', () => {
renderWithRouter();
@@ -45,14 +39,14 @@ describe('', () => {
expect(btn.hasAttribute('/account/personal-details?from=proof_of_identity#address_postcode'));
});
- it('should show missing msg with proper icon if has_invalid_postal_code is false and is_appstore is true', () => {
+ it('should show missing msg with proper icon if has_invalid_postal_code is false', () => {
renderWithRouter();
expect(screen.getByText(/your personal details are missing/i)).toBeInTheDocument();
expect(
screen.getByText(/please complete your personal details before you verify your identity\./i)
).toBeInTheDocument();
- expect(screen.getByText('IcAccountMissingDetailsDashboard')).toBeInTheDocument();
+ expect(screen.getByText('IcAccountMissingDetails')).toBeInTheDocument();
const btn = screen.getByRole('link', { name: /go to personal details/i });
expect(btn).toBeInTheDocument();
@@ -60,13 +54,11 @@ describe('', () => {
expect(btn.hasAttribute('/account/personal-details?from=proof_of_identity'));
});
- it('should show missing msg with proper icon if has_invalid_postal_code is false and is_appstore is false', () => {
+ it('should show missing msg with proper icon if has_invalid_postal_code is false', () => {
render(
-
-
-
-
-
+
+
+
);
expect(screen.getByText(/your personal details are missing/i)).toBeInTheDocument();
diff --git a/packages/account/src/Components/poi/missing-personal-details/missing-personal-details.tsx b/packages/account/src/Components/poi/missing-personal-details/missing-personal-details.tsx
index 2bac32dffd70..1ff0bcea9425 100644
--- a/packages/account/src/Components/poi/missing-personal-details/missing-personal-details.tsx
+++ b/packages/account/src/Components/poi/missing-personal-details/missing-personal-details.tsx
@@ -1,5 +1,4 @@
import React from 'react';
-import { PlatformContext } from '@deriv/shared';
import { ButtonLink, Icon, Text } from '@deriv/components';
import { localize } from '@deriv/translations';
import IconMessageContent from '../../icon-message-content';
@@ -24,7 +23,6 @@ const GoToPersonalDetailsButton = ({ anchor, from, text }: TGoToPersonalDetailsB
};
export const MissingPersonalDetails = ({ has_invalid_postal_code, from }: TGoToPersonalDetailsButton) => {
- const { is_appstore } = React.useContext(PlatformContext);
if (has_invalid_postal_code)
return (
- }
+ icon={}
>
diff --git a/packages/account/src/Components/poi/status/upload-complete/__tests__/upload-complete.spec.tsx b/packages/account/src/Components/poi/status/upload-complete/__tests__/upload-complete.spec.tsx
index d6225d9e7c56..0420e56a10d9 100644
--- a/packages/account/src/Components/poi/status/upload-complete/__tests__/upload-complete.spec.tsx
+++ b/packages/account/src/Components/poi/status/upload-complete/__tests__/upload-complete.spec.tsx
@@ -1,7 +1,6 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import { Button } from '@deriv/components';
-import { PlatformContext } from '@deriv/shared';
import { UploadComplete } from '../upload-complete';
import { BrowserRouter } from 'react-router-dom';
@@ -23,21 +22,10 @@ describe('', () => {
const redirect_button = ;
const needs_poa_extra_submit_message = /you must also submit a proof of address./i;
- const renderWithRouter = (component, is_appstore) =>
- render(
-
- {component}
-
- );
-
- it('should display Icon if is_appstore is false', () => {
- renderWithRouter(, false);
-
- expect(screen.getByTestId(/dt_mocked_icon/)).toBeInTheDocument();
- });
+ const renderWithRouter = component => render({component});
it('should render component for manual upload', () => {
- renderWithRouter(, true);
+ renderWithRouter();
expect(screen.getByText(successful_upload_message)).toBeInTheDocument();
expect(screen.getByText(poi_under_review_message_for_manual)).toBeInTheDocument();
@@ -45,7 +33,7 @@ describe('', () => {
expect(screen.queryByRole('button')).not.toBeInTheDocument();
});
it('should render component for manual upload', () => {
- renderWithRouter(, true);
+ renderWithRouter();
expect(screen.getByText(successful_upload_message)).toBeInTheDocument();
expect(screen.getByText(poi_under_review_message_for_manual)).toBeInTheDocument();
@@ -54,19 +42,19 @@ describe('', () => {
});
it('should not show redirect_button if it redirect_button passed and is_from_external is true, but needs_poa is false', () => {
- renderWithRouter(, true);
+ renderWithRouter();
expect(screen.queryByRole('button')).not.toBeInTheDocument();
});
it('should show redirect button if needs_poa and is_from_external are false and have redirect button', () => {
- renderWithRouter(, true);
+ renderWithRouter();
expect(screen.getByRole('button')).toBeInTheDocument();
});
it('should show needs_poa review message and extra submission message, and poa_buttons', () => {
- renderWithRouter(, true);
+ renderWithRouter();
expect(screen.getByTestId('dt_poa_button')).toBeInTheDocument();
expect(screen.getByText(poi_under_review_message)).toBeInTheDocument();
@@ -75,7 +63,7 @@ describe('', () => {
});
it('should show needs_poa review message and extra submission message, and poa_buttons but redirect_button will not display', () => {
- renderWithRouter(, true);
+ renderWithRouter();
expect(screen.getByTestId('dt_poa_button')).toBeInTheDocument();
expect(screen.getByText(poi_under_review_message)).toBeInTheDocument();
diff --git a/packages/account/src/Components/poi/status/upload-complete/upload-complete.tsx b/packages/account/src/Components/poi/status/upload-complete/upload-complete.tsx
index a483e233eb70..e0ed002c5e78 100644
--- a/packages/account/src/Components/poi/status/upload-complete/upload-complete.tsx
+++ b/packages/account/src/Components/poi/status/upload-complete/upload-complete.tsx
@@ -1,12 +1,11 @@
import React from 'react';
import { Icon, Text } from '@deriv/components';
-import { PlatformContext, isNavigationFromP2P, isNavigationFromDerivGO } from '@deriv/shared';
+import { isNavigationFromP2P, isNavigationFromDerivGO } from '@deriv/shared';
import { localize } from '@deriv/translations';
import PoaButton from '../../../poa/poa-button';
import { ContinueTradingButton } from '../../../poa/continue-trading-button/continue-trading-button';
import IconMessageContent from '../../../icon-message-content/icon-message-content';
-import { TPlatformContext, TPOIStatus } from 'Types';
-import classNames from 'classnames';
+import { TPOIStatus } from 'Types';
export const UploadComplete = ({
needs_poa,
@@ -14,7 +13,6 @@ export const UploadComplete = ({
is_from_external,
is_manual_upload = false,
}: TPOIStatus) => {
- const { is_appstore } = React.useContext(PlatformContext);
const message = localize('Your documents were submitted successfully');
const description = is_manual_upload
? localize('We’ll review your documents and notify you of its status within 1 - 3 working days.')
@@ -24,40 +22,19 @@ export const UploadComplete = ({
if (!needs_poa) {
return (
-
- ) : (
-
- )
- }
- className={classNames({ 'account-management-dashboard': is_appstore })}
- >
+ }>
{!is_from_external && (redirect_button || (!is_redirected_from_platform && ))}
);
}
return (
-
- ) : (
-
- )
- }
- className={classNames({ 'account-management-dashboard': is_appstore })}
- >
+ }>
-
+
{description}
-
+
{localize('You must also submit a proof of address.')}
diff --git a/packages/account/src/Components/self-exclusion/__tests__/self-exclusion-article.spec.tsx b/packages/account/src/Components/self-exclusion/__tests__/self-exclusion-article.spec.tsx
index faf26f0039dc..ffa9d0b5d8c0 100644
--- a/packages/account/src/Components/self-exclusion/__tests__/self-exclusion-article.spec.tsx
+++ b/packages/account/src/Components/self-exclusion/__tests__/self-exclusion-article.spec.tsx
@@ -1,5 +1,4 @@
import React from 'react';
-import { PlatformContext } from '@deriv/shared';
import { fireEvent, render, screen } from '@testing-library/react';
import SelfExclusionArticle from '../self-exclusion-article';
import { selfExclusionArticleItems } from 'Components/self-exclusion/self-exclusion-article-content';
@@ -12,10 +11,6 @@ jest.mock('Components/self-exclusion/self-exclusion-article-content', () => ({
}));
describe('', () => {
- let mock_platform_context = {
- is_appstore: false,
- is_deriv_crypto: false,
- };
let mock_self_exclusion_context = {
is_app_settings: false,
is_eu: false,
@@ -31,10 +26,6 @@ describe('', () => {
/these self-exclusion limits help you control the amount of money and time you spend trading on deriv trader, deriv bot, smarttrader and binary bot on deriv. the limits you set here will help you exercise/i;
beforeEach(() => {
- mock_platform_context = {
- is_appstore: false,
- is_deriv_crypto: false,
- };
mock_self_exclusion_context = {
is_app_settings: false,
is_eu: false,
@@ -57,11 +48,9 @@ describe('', () => {
render(
-
-
-
-
-
+
+
+
);
@@ -81,11 +70,9 @@ describe('', () => {
render(
-
-
-
-
-
+
+
+
);
@@ -104,11 +91,9 @@ describe('', () => {
render(
-
-
-
-
-
+
+
+
);
@@ -128,11 +113,9 @@ describe('', () => {
render(
-
-
-
-
-
+
+
+
);
diff --git a/packages/account/src/Components/self-exclusion/__tests__/self-exclusion-inputs.spec.tsx b/packages/account/src/Components/self-exclusion/__tests__/self-exclusion-inputs.spec.tsx
index fca2908a32de..6930c80b915e 100644
--- a/packages/account/src/Components/self-exclusion/__tests__/self-exclusion-inputs.spec.tsx
+++ b/packages/account/src/Components/self-exclusion/__tests__/self-exclusion-inputs.spec.tsx
@@ -16,7 +16,6 @@ let mock_context: TSelfExclusionContext = {
footer_ref: undefined,
getMaxLength: jest.fn(),
goToConfirm: jest.fn(),
- is_appstore: false,
is_app_settings: false,
is_eu: false,
is_mf: false,
@@ -64,7 +63,6 @@ describe('', () => {
footer_ref: undefined,
getMaxLength: jest.fn(),
goToConfirm: jest.fn(),
- is_appstore: false,
is_app_settings: false,
is_eu: false,
is_mf: false,
diff --git a/packages/account/src/Components/self-exclusion/self-exclusion-article-content.tsx b/packages/account/src/Components/self-exclusion/self-exclusion-article-content.tsx
index b60b72c012e0..8f25a7cd264d 100644
--- a/packages/account/src/Components/self-exclusion/self-exclusion-article-content.tsx
+++ b/packages/account/src/Components/self-exclusion/self-exclusion-article-content.tsx
@@ -1,18 +1,18 @@
import classNames from 'classnames';
import * as React from 'react';
import PropTypes from 'prop-types';
-import { getStaticUrl, PlatformContext } from '@deriv/shared';
+import { getStaticUrl } from '@deriv/shared';
import { Localize, localize } from '@deriv/translations';
import { Button, Icon, OpenLiveChatLink, Popup, Text } from '@deriv/components';
import SelfExclusionContext from './self-exclusion-context';
-type TSelfExclusionArticleItems = Record<'is_eu' | 'is_deriv_crypto' | 'is_app_settings', boolean | undefined>;
+type TSelfExclusionArticleItems = Record<'is_eu' | 'is_app_settings', boolean | undefined>;
type TSelfExclusionArticleContent = {
is_in_overlay: boolean;
};
-export const selfExclusionArticleItems = ({ is_eu, is_deriv_crypto, is_app_settings }: TSelfExclusionArticleItems) => {
+export const selfExclusionArticleItems = ({ is_eu, is_app_settings }: TSelfExclusionArticleItems) => {
const getEuItems = () => {
const eu_items = [
{
@@ -25,7 +25,7 @@ export const selfExclusionArticleItems = ({ is_eu, is_deriv_crypto, is_app_setti
className='link'
rel='noopener noreferrer'
target='_blank'
- href={getStaticUrl('/responsible', { is_deriv_crypto })}
+ href={getStaticUrl('/responsible')}
/>,
]}
/>
@@ -57,7 +57,7 @@ export const selfExclusionArticleItems = ({ is_eu, is_deriv_crypto, is_app_setti
className='link'
rel='noopener noreferrer'
target='_blank'
- href={getStaticUrl('/contact_us', { is_deriv_crypto })}
+ href={getStaticUrl('/contact_us')}
/>,
]}
/>
@@ -79,7 +79,7 @@ export const selfExclusionArticleItems = ({ is_eu, is_deriv_crypto, is_app_setti
className='link'
rel='noopener noreferrer'
target='_blank'
- href={getStaticUrl('/responsible', { is_deriv_crypto })}
+ href={getStaticUrl('/responsible')}
/>,
]}
/>
@@ -121,9 +121,8 @@ export const selfExclusionArticleItems = ({ is_eu, is_deriv_crypto, is_app_setti
const SelfExclusionArticleContent = ({ is_in_overlay }: Partial) => {
const { is_app_settings, toggleArticle, overlay_ref, is_eu } = React.useContext(SelfExclusionContext);
- const { is_deriv_crypto } = React.useContext(PlatformContext);
- const keyed_article_items = selfExclusionArticleItems({ is_eu, is_deriv_crypto, is_app_settings });
+ const keyed_article_items = selfExclusionArticleItems({ is_eu, is_app_settings });
if (is_in_overlay) {
return (
void;
goToConfirm?: (value: FormikValues) => void;
handleSubmit: (values: FormikValues, setSubmitting: FormikHelpers) => void;
- is_appstore?: boolean;
is_app_settings?: boolean;
is_eu?: boolean;
is_mf?: boolean;
diff --git a/packages/account/src/Components/self-exclusion/self-exclusion-inputs.tsx b/packages/account/src/Components/self-exclusion/self-exclusion-inputs.tsx
index c2bd9878a16c..fd7c0e81a623 100644
--- a/packages/account/src/Components/self-exclusion/self-exclusion-inputs.tsx
+++ b/packages/account/src/Components/self-exclusion/self-exclusion-inputs.tsx
@@ -1,7 +1,7 @@
import * as React from 'react';
import classNames from 'classnames';
import { Button, DatePicker, Input, Text } from '@deriv/components';
-import { epochToMoment, toMoment, PlatformContext, isMobile } from '@deriv/shared';
+import { epochToMoment, toMoment, isMobile } from '@deriv/shared';
import { Localize, localize } from '@deriv/translations';
import {
Field,
@@ -192,14 +192,10 @@ const SessionAndLoginLimitsInputs = () => {
const { is_tablet, session_duration_digits } = React.useContext(SelfExclusionContext);
const { errors, handleBlur, handleChange, setFieldValue, values }: TFormikContext =
useFormikContext();
- const { is_appstore } = React.useContext(PlatformContext);
return (
- }
- has_border_line={is_appstore}
- />
+ } />
@@ -286,14 +282,10 @@ const SessionAndLoginLimitsInputs = () => {
const MaximumAccountBalanceAndOpenPositionsInputs = () => {
const { currency_display, getMaxLength } = React.useContext(SelfExclusionContext);
const { errors, handleBlur, handleChange, values }: TFormikContext = useFormikContext();
- const { is_appstore } = React.useContext(PlatformContext);
return (
- }
- has_border_line={is_appstore}
- />
+ } />
@@ -345,7 +337,6 @@ const MaximumAccountBalanceAndOpenPositionsInputs = () => {
const MaximumDepositLimitInputs = () => {
const { currency, is_mf, getMaxLength } = React.useContext(SelfExclusionContext);
const { errors, handleBlur, handleChange, values }: TFormikContext = useFormikContext();
- const { is_appstore } = React.useContext(PlatformContext);
if (!is_mf) {
return null;
@@ -353,10 +344,7 @@ const MaximumDepositLimitInputs = () => {
return (
- }
- has_border_line={is_appstore}
- />
+ } />