Fixed dumb issue
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import Planning from "@/components/planning";
|
import Planning from "@/components/planning";
|
||||||
import { useApi } from "@/hooks/use-api";
|
import { useApi } from "@/hooks/use-api";
|
||||||
import { type CalendarEventExternal } from "@schedule-x/calendar";
|
import ICalendarEvent from "@/interfaces/ICalendarEvent";
|
||||||
import { Loader2 } from "lucide-react";
|
import { Loader2 } from "lucide-react";
|
||||||
|
|
||||||
const Page = () => {
|
const Page = () => {
|
||||||
@@ -10,7 +10,7 @@ const Page = () => {
|
|||||||
isLoading,
|
isLoading,
|
||||||
success,
|
success,
|
||||||
mutate,
|
mutate,
|
||||||
} = useApi<CalendarEventExternal[]>("/events", undefined, false, false);
|
} = useApi<ICalendarEvent[]>("/events", undefined, false, false);
|
||||||
|
|
||||||
if (isLoading) return <Loader2 className="animate-spin" />;
|
if (isLoading) return <Loader2 className="animate-spin" />;
|
||||||
if (success)
|
if (success)
|
||||||
|
|||||||
Reference in New Issue
Block a user