Fixed dumb issue

This commit is contained in:
cdricms
2025-02-10 09:57:40 +01:00
parent 605223d041
commit 60dd966f3e

View File

@@ -1,7 +1,7 @@
"use client";
import Planning from "@/components/planning";
import { useApi } from "@/hooks/use-api";
import { type CalendarEventExternal } from "@schedule-x/calendar";
import ICalendarEvent from "@/interfaces/ICalendarEvent";
import { Loader2 } from "lucide-react";
const Page = () => {
@@ -10,7 +10,7 @@ const Page = () => {
isLoading,
success,
mutate,
} = useApi<CalendarEventExternal[]>("/events", undefined, false, false);
} = useApi<ICalendarEvent[]>("/events", undefined, false, false);
if (isLoading) return <Loader2 className="animate-spin" />;
if (success)