Skip to content

Commit

Permalink
feat: remove unused filters
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Apr 11, 2024
1 parent 02a43e9 commit da5808c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions components/search/filter/Filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
CalendarFilter,
CustomFilterCheckbox,
InstitutionDropdown,
UnitsFilter,
} from "./FilterComponents";
import { FaCircleXmark } from "react-icons/fa6";
import { CourseObject, FilterValues } from "../Search";
Expand All @@ -25,13 +24,10 @@ interface SearchFilterProps {
export const SearchFilters = (props: SearchFilterProps) => {
const {
setFormat,
setEnrollment,
setAvailable,
setStart,
setEnd,
setInstitution,
setMin,
setMax,
filterValues,
courses,
} = props;
Expand All @@ -44,14 +40,6 @@ export const SearchFilters = (props: SearchFilterProps) => {
onChange={setFormat}
defaultValue={filterValues.format}
/>
<CustomFilterCheckbox
title="Instant Enrollment"
categories={[
"Only show courses eligible for One-Click Registration between your home school and the teaching school",
]}
onChange={setEnrollment}
defaultValue={filterValues.enrollment}
/>
<CustomFilterCheckbox
title="Available Seats"
categories={[
Expand All @@ -71,12 +59,6 @@ export const SearchFilters = (props: SearchFilterProps) => {
onChange={setInstitution}
courses={courses}
/>
<UnitsFilter
onMinChange={setMin}
onMaxChange={setMax}
defaultMin={filterValues.min}
defaultMax={filterValues.max}
/>
</div>
);
};
Expand Down

0 comments on commit da5808c

Please sign in to comment.