Allows setting the event frequency to other than event length (#1349)

This commit is contained in:
Alex van Andel authored and GitHub committed 2021-12-19 12:11:31 +00:00
1 parent 38f762f7b2
commit cbf528c33e
12 files changed
+70 -4

No files matched your search

+3
View File
@@ -16,6 +16,7 @@ type AvailableTimesProps = {
minimumBookingNotice: number;
eventTypeId: number;
eventLength: number;
slotInterval: number | null;
date: Dayjs;
users: {
username: string | null;
@@ -27,6 +28,7 @@ const AvailableTimes: FC<AvailableTimesProps> = ({
date,
eventLength,
eventTypeId,
slotInterval,
minimumBookingNotice,
timeFormat,
users,
@@ -38,6 +40,7 @@ const AvailableTimes: FC<AvailableTimesProps> = ({
const { slots, loading, error } = useSlots({
date,
slotInterval,
eventLength,
schedulingType,
users,
@@ -220,6 +220,7 @@ const AvailabilityPage = ({ profile, eventType, workingHours }: Props) => {
timeFormat={timeFormat}
minimumBookingNotice={eventType.minimumBookingNotice}
eventTypeId={eventType.id}
slotInterval={eventType.slotInterval}
eventLength={eventType.length}
date={selectedDate}
users={eventType.users}