Skip to content

Commit

Permalink
Further cleanup using Partial
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1618 committed Mar 31, 2024
1 parent b2a20c4 commit dea4d72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/events/EventCarousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface EventCarouselProps {
events: PublicEvent[];
attendances: PublicAttendance[];
placeholder: string;
initialEventsFilter?: FilterEventOptions;
initialEventsFilter?: Partial<FilterEventOptions>;
className?: string;
}

Expand Down
9 changes: 2 additions & 7 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>

Expand All @@ -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}
/>
</div>
Expand Down

0 comments on commit dea4d72

Please sign in to comment.