Skip to content

Commit

Permalink
removed unnecessary fallbackRoutes for goBack
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Nov 5, 2024
1 parent 210db71 commit 48499f4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ function QuickbooksAdvancedPage({policy}: WithPolicyConnectionsProps) {
featureName={CONST.POLICY.MORE_FEATURES.ARE_CONNECTIONS_ENABLED}
contentContainerStyle={[styles.pb2, styles.ph5]}
connectionName={CONST.POLICY.CONNECTIONS.NAME.QBO}
onBackButtonPress={() => Navigation.goBack(ROUTES.POLICY_ACCOUNTING.getRoute(policyID))}
>
{qboToggleSettingItems.map((item) => (
<ToggleSettingOptionRow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ function QuickbooksExportConfigurationPage({policy}: WithPolicyConnectionsProps)
contentContainerStyle={styles.pb2}
titleStyle={styles.ph5}
connectionName={CONST.POLICY.CONNECTIONS.NAME.QBO}
onBackButtonPress={() => Navigation.goBack()}
>
{menuItems.map((menuItem) => (
<OfflineWithFeedback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ function QuickbooksImportPage({policy}: WithPolicyProps) {
contentContainerStyle={styles.pb2}
titleStyle={styles.ph5}
connectionName={CONST.POLICY.CONNECTIONS.NAME.QBO}
onBackButtonPress={() => Navigation.goBack(ROUTES.POLICY_ACCOUNTING.getRoute(policyID))}
>
{sections.map((section) => (
<OfflineWithFeedback
Expand All @@ -102,6 +101,6 @@ function QuickbooksImportPage({policy}: WithPolicyProps) {
);
}

QuickbooksImportPage.displayName = 'PolicyQuickbooksImportPage';
QuickbooksImportPage.displayName = 'QuickbooksImportPage';

export default withPolicyConnections(QuickbooksImportPage);

0 comments on commit 48499f4

Please sign in to comment.