Skip to content

Commit

Permalink
Merge pull request #52057 from FitseTLT/fix-weird-back-navigation-for…
Browse files Browse the repository at this point in the history
…-qbo-import

Fix - QBO - Back button on workspace editor returns to Accounting after changing Import settings
  • Loading branch information
jasperhuangg authored Nov 8, 2024
2 parents 1fc5ae3 + 48499f4 commit 9dc6a97
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 9dc6a97

Please sign in to comment.