From db5a4e90e744947e71e01b7086e248fbab96ddb0 Mon Sep 17 00:00:00 2001
From: cdOut <88325488+cdOut@users.noreply.github.com>
Date: Wed, 1 May 2024 01:24:20 +0200
Subject: [PATCH] replace removed component wrapper with
AccessOrNotFoundWrapper
---
.../accounting/xero/XeroImportPage.tsx | 68 +++++++++----------
.../XeroOrganizationConfigurationPage.tsx | 46 ++++++-------
2 files changed, 55 insertions(+), 59 deletions(-)
diff --git a/src/pages/workspace/accounting/xero/XeroImportPage.tsx b/src/pages/workspace/accounting/xero/XeroImportPage.tsx
index 56716631a400..59ec741b6c85 100644
--- a/src/pages/workspace/accounting/xero/XeroImportPage.tsx
+++ b/src/pages/workspace/accounting/xero/XeroImportPage.tsx
@@ -7,12 +7,11 @@ import ScrollView from '@components/ScrollView';
import Text from '@components/Text';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
-import AdminPolicyAccessOrNotFoundWrapper from '@pages/workspace/AdminPolicyAccessOrNotFoundWrapper';
-import FeatureEnabledAccessOrNotFoundWrapper from '@pages/workspace/FeatureEnabledAccessOrNotFoundWrapper';
import withPolicy from '@pages/workspace/withPolicy';
import type {WithPolicyProps} from '@pages/workspace/withPolicy';
import CONST from '@src/CONST';
import type {Tenant} from '@src/types/onyx/Policy';
+import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper';
function XeroImportPage({policy}: WithPolicyProps) {
const {translate} = useLocalize();
@@ -72,40 +71,39 @@ function XeroImportPage({policy}: WithPolicyProps) {
);
return (
-
-
+
-
-
-
- {translate('workspace.xero.importDescription')}
- {sections.map((section) => (
-
-
-
- ))}
-
-
-
-
+
+
+ {translate('workspace.xero.importDescription')}
+ {sections.map((section) => (
+
+
+
+ ))}
+
+
+
);
}
diff --git a/src/pages/workspace/accounting/xero/XeroOrganizationConfigurationPage.tsx b/src/pages/workspace/accounting/xero/XeroOrganizationConfigurationPage.tsx
index 9944e2307214..85b93fd3282c 100644
--- a/src/pages/workspace/accounting/xero/XeroOrganizationConfigurationPage.tsx
+++ b/src/pages/workspace/accounting/xero/XeroOrganizationConfigurationPage.tsx
@@ -11,12 +11,11 @@ import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import {updatePolicyConnectionConfig} from '@libs/actions/connections';
import type {SettingsNavigatorParamList} from '@libs/Navigation/types';
-import AdminPolicyAccessOrNotFoundWrapper from '@pages/workspace/AdminPolicyAccessOrNotFoundWrapper';
-import FeatureEnabledAccessOrNotFoundWrapper from '@pages/workspace/FeatureEnabledAccessOrNotFoundWrapper';
import withPolicy from '@pages/workspace/withPolicy';
import type {WithPolicyProps} from '@pages/workspace/withPolicy';
import CONST from '@src/CONST';
import type SCREENS from '@src/SCREENS';
+import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper';
type XeroOrganizationConfigurationPageProps = WithPolicyProps & StackScreenProps;
function XeroOrganizationConfigurationPage({
@@ -46,29 +45,28 @@ function XeroOrganizationConfigurationPage({
};
return (
-
-
+
-
-
-
- {translate('workspace.xero.organizationDescription')}
-
-
-
-
-
+
+
+ {translate('workspace.xero.organizationDescription')}
+
+
+
+
);
}