diff --git a/src/pages/workspace/accounting/qbo/import/QuickbooksChartOfAccountsPage.tsx b/src/pages/workspace/accounting/qbo/import/QuickbooksChartOfAccountsPage.tsx index 5d3433f95e13..9fea1f323bd1 100644 --- a/src/pages/workspace/accounting/qbo/import/QuickbooksChartOfAccountsPage.tsx +++ b/src/pages/workspace/accounting/qbo/import/QuickbooksChartOfAccountsPage.tsx @@ -1,16 +1,13 @@ import React from 'react'; import {View} from 'react-native'; -import HeaderWithBackButton from '@components/HeaderWithBackButton'; +import ConnectionLayout from '@components/ConnectionLayout'; import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription'; import OfflineWithFeedback from '@components/OfflineWithFeedback'; -import ScreenWrapper from '@components/ScreenWrapper'; -import ScrollView from '@components/ScrollView'; import Switch from '@components/Switch'; import Text from '@components/Text'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; import * as Connections from '@libs/actions/connections'; -import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper'; import type {WithPolicyProps} from '@pages/workspace/withPolicy'; import withPolicyConnections from '@pages/workspace/withPolicyConnections'; import variables from '@styles/variables'; @@ -23,66 +20,54 @@ function QuickbooksChartOfAccountsPage({policy}: WithPolicyProps) { const {enableNewCategories, pendingFields} = policy?.connections?.quickbooksOnline?.config ?? {}; return ( - - - - - {translate('workspace.qbo.accountsDescription')} - - - {translate('workspace.accounting.import')} - - - {}} - /> - - - + + {translate('workspace.accounting.import')} + + + {}} /> - {translate('workspace.qbo.accountsSwitchTitle')} - - - {translate('workspace.common.enabled')} - - - - - Connections.updatePolicyConnectionConfig( - policyID, - CONST.POLICY.CONNECTIONS.NAME.QBO, - CONST.QUICK_BOOKS_CONFIG.ENABLE_NEW_CATEGORIES, - !enableNewCategories, - ) - } - /> - - - - - {translate('workspace.qbo.accountsSwitchDescription')} + + + + {translate('workspace.qbo.accountsSwitchTitle')} + + + {translate('workspace.common.enabled')} + + + + + Connections.updatePolicyConnectionConfig(policyID, CONST.POLICY.CONNECTIONS.NAME.QBO, CONST.QUICK_BOOKS_CONFIG.ENABLE_NEW_CATEGORIES, !enableNewCategories) + } + /> - - - + + + + {translate('workspace.qbo.accountsSwitchDescription')} + + ); }