From 4c28b232b5f63f1e476ec68565f315bc82bdc1ad Mon Sep 17 00:00:00 2001 From: Rohan Sasne Date: Wed, 13 Mar 2024 04:28:31 +0530 Subject: [PATCH] Fix route animation --- src/pages/TeachersUnite/ImTeacherUpdateEmailPage.tsx | 2 +- src/pages/TeachersUnite/IntroSchoolPrincipalPage.tsx | 3 +-- src/pages/TeachersUnite/KnowATeacherPage.tsx | 3 +-- src/pages/settings/AboutPage/TroubleshootPage.tsx | 2 +- src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx | 2 +- src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx | 2 +- src/pages/settings/Profile/Contacts/ContactMethodsPage.tsx | 2 +- src/pages/settings/Wallet/ExpensifyCardPage.tsx | 2 +- 8 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/pages/TeachersUnite/ImTeacherUpdateEmailPage.tsx b/src/pages/TeachersUnite/ImTeacherUpdateEmailPage.tsx index 9433aba2f299..ba03b0ac910f 100644 --- a/src/pages/TeachersUnite/ImTeacherUpdateEmailPage.tsx +++ b/src/pages/TeachersUnite/ImTeacherUpdateEmailPage.tsx @@ -20,7 +20,7 @@ function ImTeacherUpdateEmailPage() { Navigation.goBack(ROUTES.TEACHERS_UNITE)} + onBackButtonPress={() => Navigation.goBack()} /> Navigation.goBack(ROUTES.TEACHERS_UNITE)} + onBackButtonPress={() => Navigation.goBack()} /> Navigation.goBack(ROUTES.TEACHERS_UNITE)} + onBackButtonPress={() => Navigation.goBack()} /> Navigation.goBack(ROUTES.SETTINGS_ABOUT)} + onBackButtonPress={() => Navigation.goBack()} backgroundColor={theme.PAGE_THEMES[SCREENS.SETTINGS.TROUBLESHOOT].backgroundColor} illustration={LottieAnimations.Desk} testID={TroubleshootPage.displayName} diff --git a/src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx b/src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx index 14739c4ffc52..e5bcfb26b714 100644 --- a/src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx +++ b/src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx @@ -62,7 +62,7 @@ function ExitSurveyConfirmPage({exitReason, isLoading, route, navigation}: ExitS Navigation.goBack(backTo)} + onBackButtonPress={() => Navigation.goBack()} /> {isOffline && } diff --git a/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx b/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx index c43ef8dd9320..724c665b131a 100644 --- a/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx +++ b/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx @@ -98,7 +98,7 @@ function ExitSurveyResponsePage({draftResponse, route, navigation}: ExitSurveyRe Navigation.goBack(backTo)} + onBackButtonPress={() => Navigation.goBack()} /> Navigation.goBack(navigateBackTo)} + onBackButtonPress={() => Navigation.goBack()} /> diff --git a/src/pages/settings/Wallet/ExpensifyCardPage.tsx b/src/pages/settings/Wallet/ExpensifyCardPage.tsx index 097b2cf28ed0..e832046bf08f 100644 --- a/src/pages/settings/Wallet/ExpensifyCardPage.tsx +++ b/src/pages/settings/Wallet/ExpensifyCardPage.tsx @@ -125,7 +125,7 @@ function ExpensifyCardPage({ <> Navigation.goBack(ROUTES.SETTINGS_WALLET)} + onBackButtonPress={() => Navigation.goBack()} />