mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
hot-reload errors
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user