Fixed dumb issue
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user