fix: date picker

This commit is contained in:
Nikola Ubavic 2022-04-14 19:07:26 +02:00
parent 913e617d1b
commit bc8335adee
2 changed files with 11 additions and 23 deletions

View file

@ -178,9 +178,7 @@ const Calendar = ({ minDate, maxDate, handleSelect, ...props }) => {
{R.range(1, 8).map((row, key) => (
<tr key={key}>
{getRow(currentDisplayedMonth, row).map((day, key) => (
<td
key={key}
onClick={() => handleSelect(day, minDate, maxDate)}>
<td key={key} onClick={() => handleSelect(day)}>
<Tile
isDisabled={
(maxDate && isAfter(maxDate, day)) ||