- onChange(
- times.filter(time => !busyArray.some(busy =>
- dayjs(time, 'HHmm-DDMMYYYY').isBetween(busy.start, busy.end, null, '[)')
- ))
- )}
- />
- onChange(
- times.filter(time => !busyArray.some(busy =>
- dayjs(time, 'HHmm-DDMMYYYY').isBetween(dayjs.tz(busy.start.dateTime, busy.start.timeZone), dayjs.tz(busy.end.dateTime, busy.end.timeZone), null, '[)')
- ))
- )}
- />
+ }>
+ onChange(
+ times.filter(time => !busyArray.some(busy =>
+ dayjs(time, 'HHmm-DDMMYYYY').isBetween(busy.start, busy.end, null, '[)')
+ ))
+ )}
+ />
+ onChange(
+ times.filter(time => !busyArray.some(busy =>
+ dayjs(time, 'HHmm-DDMMYYYY').isBetween(dayjs.tz(busy.start.dateTime, busy.start.timeZone), dayjs.tz(busy.end.dateTime, busy.end.timeZone), null, '[)')
+ ))
+ )}
+ />
+
)}
@@ -119,7 +125,7 @@ const AvailabilityEditor = ({
if (!timeLabel.time) return null;
if (!times.includes(`${timeLabel.time}-${date}`)) {
return (
-