diff --git a/components/pages/calendar/AddEventDialog.tsx b/components/pages/calendar/AddEventDialog.tsx index e6aa012..702b571 100644 --- a/components/pages/calendar/AddEventDialog.tsx +++ b/components/pages/calendar/AddEventDialog.tsx @@ -1,5 +1,4 @@ import React, {useState} from "react"; -import {MaterialIcons,} from "@expo/vector-icons"; import {Button, Card, Dialog, PanningProvider, Text, View,} from "react-native-ui-lib"; import {StyleSheet, TouchableOpacity} from "react-native"; import AddChoreDialog from "../todos/AddChoreDialog"; @@ -11,7 +10,6 @@ import NavToDosIcon from "@/assets/svgs/NavToDosIcon"; import {useSetAtom} from "jotai"; import {selectedNewEventDateAtom} from "@/components/pages/calendar/atoms"; import PlusIcon from "@/assets/svgs/PlusIcon"; -import {useNavigation} from "expo-router"; export const AddEventDialog = () => { const [show, setShow] = useState(false); @@ -33,7 +31,6 @@ export const AddEventDialog = () => { }, 100); }; - const navigation = useNavigation() return ( <> @@ -118,7 +115,7 @@ export const AddEventDialog = () => { }} label="Add To Do" labelStyle={styles.btnLabel} - onPress={() => navigation.navigate("todos")} + onPress={() => setChoreDialogVisible(true)} iconSource={() => (