From 1b8ca241c8e04f29fe53b358c8e90c1dc975ad5e Mon Sep 17 00:00:00 2001 From: eireland Date: Fri, 26 Apr 2024 15:45:45 -0700 Subject: [PATCH] Changes calendar year selection to a dropdown selector instead of number input. --- src/components/date-range/calendar-header.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/date-range/calendar-header.tsx b/src/components/date-range/calendar-header.tsx index b2c1f96..eebc443 100644 --- a/src/components/date-range/calendar-header.tsx +++ b/src/components/date-range/calendar-header.tsx @@ -59,7 +59,7 @@ export const CalendarHeader = ({calendarType, handleSelectCalendar}: ICalendarHe handleSelectCalendar(); }; - const handleYearChange = (e: React.ChangeEvent) => { + const handleYearChange = (e: React.ChangeEvent) => { const newYear = Number(e.target.value); handleSetDate(new Date(newYear, month, day)); handleSelectCalendar(); @@ -80,15 +80,15 @@ export const CalendarHeader = ({calendarType, handleSelectCalendar}: ICalendarHe ); })} - +