Add a comment to clarify the time slot usage

This commit is contained in:
Hannu Lyytikainen 2018-07-24 11:21:54 +03:00
parent baf96faed9
commit 41cb375945

View file

@ -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;