+
Filter schools
Location
{
name="filter-state"
label="State"
required={false}
- options={[
- { id: "1", label: "first one" },
- { id: "2", label: "second one" },
- ]}
- registerField={register}
+ options={stateOptions}
+ registerField={form.register}
/>
@@ -60,10 +66,11 @@ export const FilterModal = ({ closeHandler }: Props) => {
id="filter-type"
name="filter-type"
options={[
- { id: "public", label: "Public" },
- { id: "private", label: "Private" },
+ { id: CollegeType.PUBLIC, label: CollegeType.PUBLIC },
+ { id: CollegeType.PRIVATE_NP, label: CollegeType.PRIVATE_NP },
+ { id: CollegeType.PRIVATE_FP, label: CollegeType.PRIVATE_FP },
]}
- registerField={register}
+ registerField={form.register}
/>
@@ -72,12 +79,13 @@ export const FilterModal = ({ closeHandler }: Props) => {
id="filter-undergrad-pop"
name="filter-undergrad-pop"
options={[
- { id: "1-3", label: "1,000 - 3,000" },
- { id: "3-10", label: "3,000 - 10,000" },
+ { id: "<2", label: "Less than 2,000" },
+ { id: "2-5", label: "2,000 - 5,000" },
+ { id: "5-10", label: "5,000 - 10,000" },
{ id: "10-20", label: "10,000 - 20,000" },
{ id: ">20", label: "20,000 +" },
]}
- registerField={register}
+ registerField={form.register}
/>
@@ -87,11 +95,11 @@ export const FilterModal = ({ closeHandler }: Props) => {
name="filter-grad-rate"
options={[
{ id: ">90", label: "More than 90%" },
- { id: "50-90", label: "50% - 90%" },
- { id: "25-50", label: "25% - 50%" },
- { id: "<25", label: "Less than 25%" },
+ { id: "60-90", label: "60% - 90%" },
+ { id: "30-60", label: "30% - 60%" },
+ { id: "<30", label: "Less than 30%" },
]}
- registerField={register}
+ registerField={form.register}
/>
@@ -100,44 +108,45 @@ export const FilterModal = ({ closeHandler }: Props) => {
id="filter-avg-cost-per-year"
name="filter-avg-cost-per-year"
options={[
- { id: "<10>", label: "Less than $10,000" },
- { id: "10-30", label: "$10,000 - $30,000" },
- { id: "30-60", label: "$30,000 - $60,000" },
+ { id: "<10", label: "Less than $10,000" },
+ { id: "10-20", label: "$10,000 - $20,000" },
+ { id: "20-40", label: "$20,000 - $40,000" },
+ { id: "40-60", label: "$40,000 - $60,000" },
{ id: ">60", label: "More than $60,000" },
]}
- registerField={register}
+ registerField={form.register}
/>
-
-
-
-
-
-
-
-
-
+