MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / goToPreviousWeek

Function goToPreviousWeek

src/components/WeeklyCalendar.tsx:84–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 };
83
84 const goToPreviousWeek = () => setCurrentWeekStart(subWeeks(currentWeekStart, 1));
85 const goToNextWeek = () => setCurrentWeekStart(addWeeks(currentWeekStart, 1));
86 const goToToday = () => setCurrentWeekStart(startOfWeek(new Date(), { weekStartsOn: 1 }));
87

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected