mirror of
https://github.com/urosran/cally.git
synced 2025-07-16 01:56:16 +00:00
- 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:
@ -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[];
|
||||
}
|
||||
|
Reference in New Issue
Block a user