diff --git a/nextjs/src/app/course/[courseName]/CalendarMonth.tsx b/nextjs/src/app/course/[courseName]/CalendarMonth.tsx index ca12443..1c5c67c 100644 --- a/nextjs/src/app/course/[courseName]/CalendarMonth.tsx +++ b/nextjs/src/app/course/[courseName]/CalendarMonth.tsx @@ -1,4 +1,3 @@ -"use client"; import { useState } from "react"; import { CalendarMonthModel } from "./calendarMonthUtils"; import { DayOfWeek, LocalCourse } from "@/models/local/localCourse"; diff --git a/nextjs/src/app/course/[courseName]/Day.tsx b/nextjs/src/app/course/[courseName]/Day.tsx index 0744d95..d461ae4 100644 --- a/nextjs/src/app/course/[courseName]/Day.tsx +++ b/nextjs/src/app/course/[courseName]/Day.tsx @@ -1,8 +1,6 @@ -"use client"; - export default function Day({ day }: { day?: Date }) { const classes = "border rounded rounded-3 p-2 pb-4 m-1 "; - if (!day) return
; + if (!day) return
d
; return
{day.getDate()}
; } diff --git a/nextjs/src/app/course/[courseName]/calendarMonthUtils.ts b/nextjs/src/app/course/[courseName]/calendarMonthUtils.ts index db67185..3223ae4 100644 --- a/nextjs/src/app/course/[courseName]/calendarMonthUtils.ts +++ b/nextjs/src/app/course/[courseName]/calendarMonthUtils.ts @@ -1,4 +1,3 @@ -"use client"; export interface CalendarMonthModel { year: number; month: number; @@ -17,7 +16,7 @@ const weeksInMonth = (year: number, month: number): number => { return weeks; }; -export const createCalendarMonth = ( +const createCalendarMonth = ( year: number, month: number ): CalendarMonthModel => {