mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 15:18:32 -06:00
hiding week changes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user