organize events by day in UpcomingEvents

This commit is contained in:
2024-06-23 15:39:41 +02:00
parent 19d3866934
commit 50b08b874d
4 changed files with 70 additions and 33 deletions

View File

@ -8,7 +8,7 @@ import {
EventCategory,
SingularEvent,
getSingularEvents,
organizeEventsByDate,
organizeEventsInCalendar,
EventOrganizer,
} from "@/lib/event";
import { isTodayOrFuture } from "@/lib/date";
@ -141,7 +141,7 @@ const EventCalendar = ({ events }: { events: EventFragment[] }) => {
(x) => x.occurrence?.start && isTodayOrFuture(x.occurrence.start)
);
const eventsByDate = organizeEventsByDate(futureSingularEvents);
const eventsByDate = organizeEventsInCalendar(futureSingularEvents);
return (
<div className={styles.eventCalendar}>