mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
back to the good old days
This commit is contained in:
13
nextjs/src/app/course/[courseName]/calendar/Day.tsx
Normal file
13
nextjs/src/app/course/[courseName]/calendar/Day.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
"use client"
|
||||
export default function Day({ day, month }: { day: Date; month: number }) {
|
||||
const classes = "border rounded rounded-3 p-2 pb-4 m-1 ";
|
||||
|
||||
const backgroundClass = day.getMonth() + 1 != month ? "" : "bg-slate-900";
|
||||
|
||||
return (
|
||||
<div className={classes + " " + backgroundClass}>
|
||||
{day.getDate()}
|
||||
{/* <div>{day.getMonth()}</div> */}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user