From c13f55987fb13dacb535a2237a503ab9b3a4b674 Mon Sep 17 00:00:00 2001 From: Ethan Bickel Date: Tue, 27 Aug 2024 13:36:05 -0500 Subject: [PATCH] Remove the event sidebar --- src/components/events/EventSidebar.tsx | 129 ------------------------- 1 file changed, 129 deletions(-) delete mode 100644 src/components/events/EventSidebar.tsx diff --git a/src/components/events/EventSidebar.tsx b/src/components/events/EventSidebar.tsx deleted file mode 100644 index b5936453..00000000 --- a/src/components/events/EventSidebar.tsx +++ /dev/null @@ -1,129 +0,0 @@ -'use client'; -import { - RadioGroup, - RadioGroupIndicator, - RadioGroupItem, -} from '@radix-ui/react-radio-group'; -import { EventClubSearchBar } from '../SearchBar'; -import { api } from '@src/trpc/react'; -import { type eventParamsSchema, order } from '@src/utils/eventFilter'; -import { useState } from 'react'; -import { ExpandLess, ExpandMore } from '@src/icons/Icons'; -import { type useSyncedSearchParamsDispatch } from '@src/utils/useSyncedSearchParams'; - -export const basicFilters = [ - 'Upcoming Events', - 'Last weeks events', - 'Last month events', -] as const; -type FilterProps = { - filterState: eventParamsSchema; - setParams: useSyncedSearchParamsDispatch; -}; -const Filters = ({ filterState, setParams }: FilterProps) => { - return ( -
-
-

Filter by Clubs

-
- { - setParams({ clubs: [...filterState.clubs, val] }); - }} - /> -
- {filterState.clubs.map((value) => ( - { - const temp = filterState.clubs.filter((c) => c !== value); - setParams({ clubs: temp }); - }} - /> - ))} -
-
-
-
-

Arrange Events

- { - setParams({ order: val }); - }} - > - {order.map((value) => ( - -
-
- -
-

- {value} -

-
-
- ))} -
-
-
- ); -}; -const SelectedClub = ({ - clubId, - removeClub, -}: { - clubId: string; - removeClub: () => void; -}) => { - const query = api.club.byId.useQuery({ id: clubId }); - return ( -
- - - {query.data?.name} - - -
- ); -}; -const EventSidebar = ({ filterState, setParams }: FilterProps) => { - const [open, setOpen] = useState(true); - return ( -
- -
-
- -
-
-
- ); -}; -export default EventSidebar;