hot-reload errors

This commit is contained in:
2024-08-26 14:21:06 -06:00
parent 672144b097
commit 3ed5736fd4
3 changed files with 2 additions and 6 deletions

View File

@@ -1,4 +1,3 @@
"use client";
import { useState } from "react"; import { useState } from "react";
import { CalendarMonthModel } from "./calendarMonthUtils"; import { CalendarMonthModel } from "./calendarMonthUtils";
import { DayOfWeek, LocalCourse } from "@/models/local/localCourse"; import { DayOfWeek, LocalCourse } from "@/models/local/localCourse";

View File

@@ -1,8 +1,6 @@
"use client";
export default function Day({ day }: { day?: Date }) { export default function Day({ day }: { day?: Date }) {
const classes = "border rounded rounded-3 p-2 pb-4 m-1 "; const classes = "border rounded rounded-3 p-2 pb-4 m-1 ";
if (!day) return <div className={classes + ""}></div>; if (!day) return <div className={classes + ""}>d</div>;
return <div className={classes + " bg-slate-900"}>{day.getDate()}</div>; return <div className={classes + " bg-slate-900"}>{day.getDate()}</div>;
} }

View File

@@ -1,4 +1,3 @@
"use client";
export interface CalendarMonthModel { export interface CalendarMonthModel {
year: number; year: number;
month: number; month: number;
@@ -17,7 +16,7 @@ const weeksInMonth = (year: number, month: number): number => {
return weeks; return weeks;
}; };
export const createCalendarMonth = ( const createCalendarMonth = (
year: number, year: number,
month: number month: number
): CalendarMonthModel => { ): CalendarMonthModel => {