commit by adnan

This commit is contained in:
Ninjas Code - 4 2023-03-31 10:56:34 +05:00
parent 782d88b9f1
commit b68ad15d6b
1 changed files with 3 additions and 12 deletions

View File

@ -87,6 +87,7 @@ function Settings() {
refetchQueries: [{ query: PROFILE }], refetchQueries: [{ query: PROFILE }],
}); });
const modalizeRef = useRef(null); const modalizeRef = useRef(null);
const modalizeRef1 = useRef(null);
useEffect(() => { useEffect(() => {
navigation.setOptions({ navigation.setOptions({
@ -310,17 +311,7 @@ function Settings() {
<TouchableOpacity <TouchableOpacity
activeOpacity={0.7} activeOpacity={0.7}
onPress={() => modalizeRef.current.open("top")} onPress={() => modalizeRef1.current.open("top")}
// onPress={
// async () => {
// await updateUserInformation();
// logout();
// navigation.reset({
// routes: [{ name: "Menu" }],
// }
// );
// //navigation.dispatch(DrawerActions.closeDrawer());
// }}
style={[styles.notificationContainer, styles.shadow]} style={[styles.notificationContainer, styles.shadow]}
> >
<View style={styles.notificationChekboxContainer}> <View style={styles.notificationChekboxContainer}>
@ -370,7 +361,7 @@ function Settings() {
</Modalize> </Modalize>
{/* Modal for Delete Account */} {/* Modal for Delete Account */}
<Modalize <Modalize
ref={modalizeRef} ref={modalizeRef1}
adjustToContentHeight adjustToContentHeight
handlePosition="inside" handlePosition="inside"
avoidKeyboardLikeIOS={Platform.select({ avoidKeyboardLikeIOS={Platform.select({