hiding week changes

This commit is contained in:
2024-10-04 10:30:48 -06:00
parent 13613595b7
commit ae89ef41f8
2 changed files with 2 additions and 3 deletions

View File

@@ -32,8 +32,6 @@ file uploads
allow multiple courses to be edited concurrently in different browser tabs
have lock date mimic an offset after drag and drop changes due date
schedule planning view? just outline concepts? (maybe some non-canvas scheduled thing that only shows up in planner? like a note, could be de-emphasized in webpage)
- probably have a notes section for each module. Have a toggle to expand notes in module

View File

@@ -8,9 +8,10 @@ import { getDateFromStringOrThrow } from "@/models/local/timeUtils";
export const CalendarMonth = ({ month }: { month: CalendarMonthModel }) => {
const weekInMilliseconds = 604_800_000;
const four_days_in_milliseconds = 345_600_000
const isInPast =
new Date(month.year, month.month, 1) <
new Date(Date.now() - weekInMilliseconds);
new Date(Date.now() - four_days_in_milliseconds);
const monthName = new Date(month.year, month.month - 1, 1).toLocaleString(
"default",