diff --git a/src/languages/en.ts b/src/languages/en.ts index 5f486f4f437c..b80428166fff 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -1914,9 +1914,9 @@ export default { locations: 'Locations', customers: 'Customers/Projects', displayedAs: 'Displayed as', - accountsDescription: 'Chart of Accounts import as categories when connected to an accounting integration, this cannot be disabled.', - accountsSwitchTitle: 'Enable newly imported Chart of Accounts.', - accountsSwitchDescription: 'New categories imported from QuickBooks Online to Expensify will be either enabled or disabled by default.', + accountsDescription: 'When connected to Quickbooks Online, chart of accounts are always imported to Expensify as categories.', + accountsSwitchTitle: 'Below you can choose to have any new account imported as an enabled or disabled category by default.', + accountsSwitchDescription: 'Enabled categories are available for members to select when creating their expenses.', classesDescription: 'Choose whether to import classes, and see where classes are displayed.', customersDescription: 'Choose whether to import customers/projects and see where customers/projects are displayed.', locationsDescription: 'Choose whether to import locations, and see where locations are displayed.', diff --git a/src/languages/es.ts b/src/languages/es.ts index 5538a7cc9f33..8ddba987d6f4 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -1938,9 +1938,9 @@ export default { locations: 'Lugares', customers: 'Clientes/Proyectos', displayedAs: 'Mostrado como', - accountsDescription: 'Los planes de cuentas se importan como categorías cuando está conectado con una integración de contaduría, esto no se puede desactivar.', - accountsSwitchTitle: 'Habilita el plan de cuentas recien importado', - accountsSwitchDescription: 'Las nuevas categorías importadas desde QuickBooks Online a Expensify serán activadas o desactivadas por defecto.', + accountsDescription: 'Cuando estás conectado a Quickbooks Online, los planes de cuentas siempre se importan a Expensify como categorías.', + accountsSwitchTitle: 'Elige abajo si las categorías importadas serán activadas o desactivadas por defecto.', + accountsSwitchDescription: 'Las categorías activas estarán disponibles para ser escogidas cuando se crea un gasto.', classesDescription: 'Elige si quieres importar las clases y donde las clases son mostradas.', customersDescription: 'Elige si queres importar clientes/proyectos y donde los clientes/proyectos son mostrados.', locationsDescription: 'Elige si quieres importar lugares y donde los lugares son mostrados.', diff --git a/src/pages/workspace/accounting/qbo/import/QuickbooksChartOfAccountsPage.tsx b/src/pages/workspace/accounting/qbo/import/QuickbooksChartOfAccountsPage.tsx index 8c904481b1a0..9fea1f323bd1 100644 --- a/src/pages/workspace/accounting/qbo/import/QuickbooksChartOfAccountsPage.tsx +++ b/src/pages/workspace/accounting/qbo/import/QuickbooksChartOfAccountsPage.tsx @@ -1,15 +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'; @@ -22,46 +20,54 @@ function QuickbooksChartOfAccountsPage({policy}: WithPolicyProps) { const {enableNewCategories, pendingFields} = policy?.connections?.quickbooksOnline?.config ?? {}; return ( - - - - - {translate('workspace.qbo.accountsDescription')} - - - {translate('workspace.qbo.accountsSwitchTitle')} - - - - - Connections.updatePolicyConnectionConfig( - policyID, - CONST.POLICY.CONNECTIONS.NAME.QBO, - CONST.QUICK_BOOKS_CONFIG.ENABLE_NEW_CATEGORIES, - !enableNewCategories, - ) - } - /> - - + + + {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.accountsSwitchDescription')} + + ); } diff --git a/src/pages/workspace/accounting/qbo/import/QuickbooksImportPage.tsx b/src/pages/workspace/accounting/qbo/import/QuickbooksImportPage.tsx index a0da62f525e1..32d9f3597a4d 100644 --- a/src/pages/workspace/accounting/qbo/import/QuickbooksImportPage.tsx +++ b/src/pages/workspace/accounting/qbo/import/QuickbooksImportPage.tsx @@ -18,14 +18,14 @@ function QuickbooksImportPage({policy}: WithPolicyProps) { const {translate} = useLocalize(); const styles = useThemeStyles(); const policyID = policy?.id ?? ''; - const {syncClasses, syncCustomers, syncLocations, syncTax, enableNewCategories, pendingFields} = policy?.connections?.quickbooksOnline?.config ?? {}; + const {syncClasses, syncCustomers, syncLocations, syncTax, pendingFields} = policy?.connections?.quickbooksOnline?.config ?? {}; const sections = [ { description: translate('workspace.accounting.accounts'), action: () => Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_CHART_OF_ACCOUNTS.getRoute(policyID)), hasError: Boolean(policy?.errors?.enableNewCategories), - title: enableNewCategories ? translate('workspace.accounting.importAsCategory') : translate('workspace.accounting.importTypes.NONE'), + title: translate('workspace.accounting.importAsCategory'), pendingAction: pendingFields?.enableNewCategories, }, {