From 1c444414369aeaa4508eace9879f1c996f0db082 Mon Sep 17 00:00:00 2001 From: clukhei Date: Wed, 14 Aug 2024 14:38:36 +0800 Subject: [PATCH] chore(*): cleanup --- src/DatePicker/Calendar.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/DatePicker/Calendar.tsx b/src/DatePicker/Calendar.tsx index 68d405f0..f64c5b49 100644 --- a/src/DatePicker/Calendar.tsx +++ b/src/DatePicker/Calendar.tsx @@ -52,18 +52,11 @@ export const Calendar = React.forwardRef( } = React.useContext(DatePickerContext); const handleClick = (e: React.MouseEvent) => { - - const day = e.currentTarget.getAttribute('data-day')!; const displayDateClone = new Date(props.displayDate); const newSelectedDate = setTimeToNoon(displayDateClone); newSelectedDate.setDate(parseInt(day)); - - // if (props.mode === "range" && (props.selectedDate as RangeSelectionValue)?.start) { - // props.changeDate({start: (props.selectedDate as RangeSelectionValue)?.start, end: newSelectedDate}) - // } props.changeDate(newSelectedDate); - }; /**