mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
Add a comment to clarify the time slot usage
This commit is contained in:
parent
baf96faed9
commit
41cb375945
1 changed files with 3 additions and 0 deletions
|
|
@ -160,6 +160,9 @@ class DateInputComponent extends Component {
|
|||
|
||||
const isDayBlocked = timeSlots
|
||||
? day => {
|
||||
// Time slots describe available dates by providing a start and
|
||||
// an end date which is the following day. In the single date picker
|
||||
// the start date is used to represent available dates.
|
||||
return !timeSlots.find(timeSlot => isSameDay(day, moment(timeSlot.attributes.start)));
|
||||
}
|
||||
: () => false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue