Skip to content

Commit

Permalink
chore(*): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
clukhei committed Aug 14, 2024
1 parent 78abec7 commit 1c44441
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/DatePicker/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,11 @@ export const Calendar = React.forwardRef<HTMLTableElement, CalendarProps>(
} = React.useContext(DatePickerContext);

const handleClick = (e: React.MouseEvent<HTMLTableCellElement>) => {


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);

};

/**
Expand Down

0 comments on commit 1c44441

Please sign in to comment.