From 7f7c64b2efd0dbddeb4d70639bb77e113e57c572 Mon Sep 17 00:00:00 2001 From: al-rosenthal Date: Fri, 10 Jan 2025 12:00:55 -0800 Subject: [PATCH] fix: added missing back buttons to settings pages updated header for biometry, update pin, terms and push notifications screens in the settings stack Signed-off-by: al-rosenthal --- .../legacy/core/App/navigators/SettingStack.tsx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/legacy/core/App/navigators/SettingStack.tsx b/packages/legacy/core/App/navigators/SettingStack.tsx index c8ecd715b..2fdb3d224 100644 --- a/packages/legacy/core/App/navigators/SettingStack.tsx +++ b/packages/legacy/core/App/navigators/SettingStack.tsx @@ -25,7 +25,6 @@ import AutoLock from '../screens/AutoLock' const SettingStack: React.FC = () => { const Stack = createStackNavigator() const theme = useTheme() - const [biometryUpdatePending, setBiometryUpdatePending] = useState(false) const { t } = useTranslation() const [pages, { screen: terms }, UseBiometry, developer, ScreenOptionsDictionary] = useServices([ TOKENS.SCREEN_ONBOARDING_PAGES, @@ -38,16 +37,6 @@ const SettingStack: React.FC = () => { const OnboardingTheme = theme.OnboardingTheme const carousel = createCarouselStyle(OnboardingTheme) - useEffect(() => { - const handleBiometry = DeviceEventEmitter.addListener(EventTypes.BIOMETRY_UPDATE, (value: boolean) => { - setBiometryUpdatePending(value) - }) - - return () => { - handleBiometry.remove() - } - }, []) - return ( { component={UseBiometry} options={{ title: t('Screens.Biometry'), - headerLeft: biometryUpdatePending ? () => null : undefined, headerBackTestID: testIdWithKey('Back'), ...ScreenOptionsDictionary[Screens.UseBiometry], + headerLeft: undefined, }} /> { title: t('Screens.ChangePIN'), headerBackTestID: testIdWithKey('Back'), ...ScreenOptionsDictionary[Screens.CreatePIN], + headerLeft: undefined, }} /> { title: t('Screens.UsePushNotifications'), headerBackTestID: testIdWithKey('Back'), ...ScreenOptionsDictionary[Screens.UsePushNotifications], + headerLeft: undefined, }} /> { title: t('Screens.Terms'), headerBackTestID: testIdWithKey('Back'), ...ScreenOptionsDictionary[Screens.Terms], + headerLeft: undefined, }} />