mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 14:37:13 +01:00
indicate loading daysBooked in calendar
This commit is contained in:
@@ -49,7 +49,10 @@ export default function MyCalendar() {
|
||||
'Calendar-grid-item',
|
||||
day.isSame(moment(), 'day') && 'Calendar-grid-item--current',
|
||||
day.isBefore(moment(), 'day') && 'Calendar-grid-item--past',
|
||||
dayBooked(day.toDate()) && 'Calendar-grid-item--booked',
|
||||
!!daysBooked &&
|
||||
(dayBooked(day.toDate())
|
||||
? 'Calendar-grid-item--booked'
|
||||
: 'Calendar-grid-item--free'),
|
||||
classNames
|
||||
)}
|
||||
onClick={(e) => onPickDate(day)}
|
||||
|
||||
Reference in New Issue
Block a user