From 177d0952407e4cbc7199dd1bcfec172c074d5d7f Mon Sep 17 00:00:00 2001 From: Sean Date: Sun, 29 Sep 2024 08:07:16 -0700 Subject: [PATCH] move EventsPageProps back where it used to be --- src/pages/events.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/events.tsx b/src/pages/events.tsx index b80866e6..88dec42c 100644 --- a/src/pages/events.tsx +++ b/src/pages/events.tsx @@ -18,6 +18,13 @@ import styles from '@/styles/pages/events.module.scss'; import { GetServerSideProps } from 'next'; import { useMemo, useState } from 'react'; +interface EventsPageProps { + events: PublicEvent[]; + attendances: PublicAttendance[]; + initialFilters: FilterEventOptions; + loggedOut: boolean; +} + interface FilterOptions { search: string; communityFilter: string; @@ -62,13 +69,6 @@ const filterEvent = ( const ROWS_PER_PAGE = 25; -interface EventsPageProps { - events: PublicEvent[]; - attendances: PublicAttendance[]; - initialFilters: FilterEventOptions; - loggedOut: boolean; -} - const EventsPage = ({ events, attendances, initialFilters, loggedOut }: EventsPageProps) => { const [page, setPage] = useState(0); const years = useMemo(getYears, []);