diff --git a/src/components/calendar/CalendarPage.tsx b/src/components/calendar/CalendarPage.tsx index dd4f314..117da7c 100644 --- a/src/components/calendar/CalendarPage.tsx +++ b/src/components/calendar/CalendarPage.tsx @@ -1,6 +1,8 @@ +import { useMe } from "@/api/accounts/user.ts"; import { $events, eventsTypes } from "@/api/events"; import { Calendar } from "@/components/calendar/Calendar.tsx"; import { URLType } from "@/components/calendar/CalendarViewer.tsx"; +import { AuthWall } from "@/components/common/AuthWall.tsx"; import { getICSLink, getMyMoodleLink, @@ -16,6 +18,12 @@ export function CalendarPage() { const initialWidth = useRef(window.innerWidth); + const { me } = useMe(); + + if (!me) { + return ; + } + return (