diff --git a/spotlight-client/src/VizRecidivismRateSingleFollowup/FollowupPeriodFilterSelect.tsx b/spotlight-client/src/VizRecidivismRateSingleFollowup/FollowupPeriodFilterSelect.tsx index 7b9c3de5..d32f8a13 100644 --- a/spotlight-client/src/VizRecidivismRateSingleFollowup/FollowupPeriodFilterSelect.tsx +++ b/spotlight-client/src/VizRecidivismRateSingleFollowup/FollowupPeriodFilterSelect.tsx @@ -21,36 +21,41 @@ import React from "react"; import RecidivismRateMetric from "../contentModels/RecidivismRateMetric"; import { Dropdown } from "../UiLibrary"; -type LocalityFilterSelectProps = { +const options = [ + { + id: "1", + label: "1 Year", + }, + { + id: "3", + label: "3 Years", + }, + { + id: "5", + label: "5 Years", + }, +]; + +type FollowupPeriodFilterSelectProps = { metric: RecidivismRateMetric; }; -const FollowupPeriodFilterSelect: React.FC = ({ +const FollowupPeriodFilterSelect: React.FC = ({ metric, }) => { - const onChange = action("change locality filter", (newFilter: string) => { - // eslint-disable-next-line no-param-reassign - metric.followUpYears = Number(newFilter); - }); + const onChange = action( + "change followup period filter", + (newFilter: string) => { + // eslint-disable-next-line no-param-reassign + metric.followUpYears = Number(newFilter); + } + ); return ( );