fix: date picker
This commit is contained in:
parent
913e617d1b
commit
bc8335adee
2 changed files with 11 additions and 23 deletions
|
|
@ -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)) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue