Skip to content

Commit

Permalink
Cr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
khomyakov committed Feb 13, 2024
1 parent 4aac5b0 commit 554116e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/DatePicker/RangeDatePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ const RangeDatePicker = ({
const isDisabledEndDays = (date) => {
const isDateBeforeStartDate = dayjs(date).isBefore(value?.from, "day");

return (
isStartDateIsTheSameMonth ||
isDateDisabledFromOutside(date) ||
(isDateBeforeStartDate && !isSingleDayDateRange)
);
return isDateDisabledFromOutside(date) || (isDateBeforeStartDate && !isSingleDayDateRange);
};

const renderDay = (date, isDisabledDays, currentMonth) => {
Expand Down

0 comments on commit 554116e

Please sign in to comment.