Start adding stuff for user reminders

This commit is contained in:
jude
2024-03-03 21:58:48 +00:00
parent 329492b244
commit 85a114e55c
6 changed files with 25 additions and 4 deletions

View File

@ -175,3 +175,10 @@ export const deleteGuildTemplate = (guild: string) => ({
},
}),
});
export const fetchUserReminders = () => ({
queryKey: ["USER_REMINDERS"],
queryFn: () =>
axios.get(`/dashboard/api/user/reminders`).then((resp) => resp.data) as Promise<Reminder[]>,
staleTime: OTHER_STALE_TIME,
});