Skip to content

Commit

Permalink
move EventsPageProps back where it used to be
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepTester committed Sep 29, 2024
1 parent 5119178 commit 177d095
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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, []);
Expand Down

0 comments on commit 177d095

Please sign in to comment.