This commit is contained in:
2024-09-13 16:06:50 -06:00
parent 6b60e8eda6
commit 5c7ddf18d6
5 changed files with 150 additions and 162 deletions

View File

@@ -10,7 +10,6 @@ export const CalendarMonth = ({ month }: { month: CalendarMonthModel }) => {
new Date(month.year, month.month, 1) <
new Date(Date.now() - weekInMilliseconds);
console.log(month, isInPast);
const [isCollapsed, setIsCollapsed] = useState(isInPast);
const monthName = new Date(month.year, month.month - 1, 1).toLocaleString(
@@ -20,7 +19,6 @@ export const CalendarMonth = ({ month }: { month: CalendarMonthModel }) => {
const toggleCollapse = () => setIsCollapsed(!isCollapsed);
const weekDaysList: DayOfWeek[] = Object.values(DayOfWeek);
console.log(isCollapsed);
return (
<>
<div className="flex justify-center">