From 62b1cda0cfee44f661f7a880e5a9fee3600f66df Mon Sep 17 00:00:00 2001 From: Wojciech Boman Date: Mon, 18 Nov 2024 12:39:35 +0100 Subject: [PATCH] Remove NAVIGATION.TYPE.UP --- src/CONST.ts | 3 --- src/libs/actions/Report.ts | 4 ++-- src/pages/EnablePayments/EnablePaymentsPage.tsx | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/CONST.ts b/src/CONST.ts index 3df06347cd97..370cf5bd8977 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -4531,9 +4531,6 @@ const CONST = { SF_COORDINATES: [-122.4194, 37.7749], NAVIGATION: { - TYPE: { - UP: 'UP', - }, ACTION_TYPE: { REPLACE: 'REPLACE', PUSH: 'PUSH', diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 1673a84cde51..c139f7e37826 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -1391,7 +1391,7 @@ function handleReportChanged(report: OnyxEntry) { 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 @@ -2795,7 +2795,7 @@ function navigateToMostRecentReport(currentReport: OnyxEntry) { Navigation.goBack(); } - navigateToConciergeChat(false, () => true, CONST.NAVIGATION.TYPE.UP); + navigateToConciergeChat(false, () => true, CONST.NAVIGATION.ACTION_TYPE.REPLACE); } } diff --git a/src/pages/EnablePayments/EnablePaymentsPage.tsx b/src/pages/EnablePayments/EnablePaymentsPage.tsx index 1384875fe031..4268b4cfd575 100644 --- a/src/pages/EnablePayments/EnablePaymentsPage.tsx +++ b/src/pages/EnablePayments/EnablePaymentsPage.tsx @@ -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; }