Skip to content

Commit

Permalink
remove SETTINGS param from goBack
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrzybowski committed Feb 9, 2024
1 parent b0fdacd commit 03896dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/ShareCodePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function ShareCodePage({report, session, currentUserPersonalDetails}: ShareCodeP
>
<HeaderWithBackButton
title={translate('common.shareCode')}
onBackButtonPress={() => Navigation.goBack(isReport ? ROUTES.REPORT_WITH_ID_DETAILS.getRoute(report.reportID) : ROUTES.SETTINGS)}
onBackButtonPress={() => Navigation.goBack(isReport ? ROUTES.REPORT_WITH_ID_DETAILS.getRoute(report.reportID) : undefined)}
shouldShowBackButton={isReport || isSmallScreenWidth}
icon={Illustrations.QrCode}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/Profile/ProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function ProfilePage(props) {
>
<HeaderWithBackButton
title={props.translate('common.profile')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS)}
onBackButtonPress={() => Navigation.goBack()}
shouldShowBackButton={props.isSmallScreenWidth}
icon={Illustrations.Profile}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/Security/SecuritySettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function SecuritySettingsPage() {
return (
<IllustratedHeaderPageLayout
title={translate('initialSettingsPage.security')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS)}
onBackButtonPress={() => Navigation.goBack()}
shouldShowBackButton={isSmallScreenWidth}
illustration={LottieAnimations.Safe}
backgroundColor={theme.PAGE_THEMES[SCREENS.SETTINGS.SECURITY].backgroundColor}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/Wallet/WalletPage/WalletPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function WalletPage({bankAccountList, cardList, fundList, isLoadingPaymentMethod
>
<HeaderWithBackButton
title={translate('common.wallet')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS)}
onBackButtonPress={() => Navigation.goBack()}
icon={Illustrations.MoneyIntoWallet}
shouldShowBackButton={isSmallScreenWidth}
/>
Expand Down

0 comments on commit 03896dc

Please sign in to comment.