organize events by day in UpcomingEvents
This commit is contained in:
1 parent
19d3866934
commit
50b08b874d
4 files changed
+70
-33
No files matched your search
@@ -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}>
|
||||
|
||||
Reference in new issue
Block a user