MCPcopy Create free account
hub / github.com/code100x/cms / loadEvents

Function loadEvents

src/components/big-calendar/calendar.tsx:72–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }, []);
71
72 const loadEvents = async () => {
73 const fetchedEvents = await fetchEvents();
74 setEvents(
75 fetchedEvents.map((event) => ({
76 ...event,
77 start: new Date(event.start),
78 end: new Date(event.end),
79 })),
80 );
81 };
82
83 const handleNavigate = (newDate: Date) => setDate(newDate);
84

Callers 4

CalendarPageComponentFunction · 0.85
handleAddEventFunction · 0.85
handleUpdateEventFunction · 0.85
handleDeleteEventFunction · 0.85

Calls 1

fetchEventsFunction · 0.90

Tested by

no test coverage detected