Skip to content

Commit

Permalink
Remove NAVIGATION.TYPE.UP
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Nov 18, 2024
1 parent 3659ad0 commit 62b1cda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4531,9 +4531,6 @@ const CONST = {
SF_COORDINATES: [-122.4194, 37.7749],

NAVIGATION: {
TYPE: {
UP: 'UP',
},
ACTION_TYPE: {
REPLACE: 'REPLACE',
PUSH: 'PUSH',
Expand Down
4 changes: 2 additions & 2 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@ function handleReportChanged(report: OnyxEntry<Report>) {
const currCallback = callback;
callback = () => {
currCallback();
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.preexistingReportID ?? '-1'), CONST.NAVIGATION.TYPE.UP);
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.preexistingReportID ?? '-1'), CONST.NAVIGATION.ACTION_TYPE.REPLACE);
};

// The report screen will listen to this event and transfer the draft comment to the existing report
Expand Down Expand Up @@ -2795,7 +2795,7 @@ function navigateToMostRecentReport(currentReport: OnyxEntry<Report>) {
Navigation.goBack();
}

navigateToConciergeChat(false, () => true, CONST.NAVIGATION.TYPE.UP);
navigateToConciergeChat(false, () => true, CONST.NAVIGATION.ACTION_TYPE.REPLACE);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/EnablePayments/EnablePaymentsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function EnablePaymentsPage({userWallet}: EnablePaymentsPageProps) {

// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
if (isPendingOnfidoResult || hasFailedOnfido) {
Navigation.navigate(ROUTES.SETTINGS_WALLET, CONST.NAVIGATION.TYPE.UP);
Navigation.navigate(ROUTES.SETTINGS_WALLET, CONST.NAVIGATION.ACTION_TYPE.REPLACE);
return;
}

Expand Down

0 comments on commit 62b1cda

Please sign in to comment.