- Fixed an issue with the Tod dialog

- Implementation of update todo and adding new days in the rule for a repeatable todo
This commit is contained in:
Dejan
2024-10-25 14:04:13 +02:00
parent 04f9e31ce4
commit f35033f5e7
6 changed files with 115 additions and 20 deletions

View File

@ -1,7 +1,6 @@
import { useQuery } from "react-query";
import firestore from "@react-native-firebase/firestore";
import { useAuthContext } from "@/contexts/AuthContext";
import {UserProfile} from "@/hooks/firebase/types/profileTypes";
import {IToDo} from "@/hooks/firebase/types/todoData";
export const useGetTodos = () => {
@ -23,6 +22,7 @@ export const useGetTodos = () => {
...data,
id: doc.id,
date: data.date ? new Date(data.date.seconds * 1000) : null,
repeatDays: data.repeatDays ?? []
};
}) as IToDo[];
}