diff --git a/src/components/events/EventCarousel/index.tsx b/src/components/events/EventCarousel/index.tsx index 43731e3e..0f5e3017 100644 --- a/src/components/events/EventCarousel/index.tsx +++ b/src/components/events/EventCarousel/index.tsx @@ -14,7 +14,7 @@ interface EventCarouselProps { events: PublicEvent[]; attendances: PublicAttendance[]; placeholder: string; - initialEventsFilter?: FilterEventOptions; + initialEventsFilter?: Partial; className?: string; } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 9f4877a6..18a14ce4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -154,7 +154,7 @@ const PortalHomePage = ({ events={upcomingEvents} attendances={attendance} placeholder="Check back soon for upcoming events!" - initialEventsFilter={{ date: 'upcoming', attendance: 'any', community: 'all', search: '' }} + initialEventsFilter={{ date: 'upcoming' }} className={styles.upcomingEvents} /> @@ -164,12 +164,7 @@ const PortalHomePage = ({ events={attendedEvents} attendances={attendance} placeholder="Attend your first event and earn membership points!" - initialEventsFilter={{ - date: 'all-time', - attendance: 'attended', - community: 'all', - search: '', - }} + initialEventsFilter={{ attendance: 'attended' }} className={styles.recentlyAttended} />