From 15aef9d9bbe3a28809ea9399534442529806fcde Mon Sep 17 00:00:00 2001 From: Ian MacFarland Date: Thu, 4 Feb 2021 15:14:28 -0800 Subject: [PATCH] diff cleanup --- .../FollowupPeriodFilterSelect.tsx | 45 ++++++++++--------- 1 file changed, 25 insertions(+), 20 deletions(-) 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 ( );