diff --git a/CustomerApp/src/screens/Settings/Settings.js b/CustomerApp/src/screens/Settings/Settings.js index e0504e5..b4eb39a 100644 --- a/CustomerApp/src/screens/Settings/Settings.js +++ b/CustomerApp/src/screens/Settings/Settings.js @@ -87,6 +87,7 @@ function Settings() { refetchQueries: [{ query: PROFILE }], }); const modalizeRef = useRef(null); + const modalizeRef1 = useRef(null); useEffect(() => { navigation.setOptions({ @@ -310,17 +311,7 @@ function Settings() { modalizeRef.current.open("top")} - // onPress={ - // async () => { - // await updateUserInformation(); - // logout(); - // navigation.reset({ - // routes: [{ name: "Menu" }], - // } - // ); - // //navigation.dispatch(DrawerActions.closeDrawer()); - // }} + onPress={() => modalizeRef1.current.open("top")} style={[styles.notificationContainer, styles.shadow]} > @@ -370,7 +361,7 @@ function Settings() { {/* Modal for Delete Account */}