diff --git a/components/booking/AvailableTimes.tsx b/components/booking/AvailableTimes.tsx index 6745ddc52b..bfa4a0cfd3 100644 --- a/components/booking/AvailableTimes.tsx +++ b/components/booking/AvailableTimes.tsx @@ -1,7 +1,7 @@ import Link from "next/link"; import { useRouter } from "next/router"; import Slots from "./Slots"; -import {ExclamationIcon} from "@heroicons/react/solid"; +import { ExclamationIcon } from "@heroicons/react/solid"; const AvailableTimes = ({ date, eventLength, eventTypeId, workingHours, timeFormat, user }) => { const router = useRouter(); @@ -12,12 +12,12 @@ const AvailableTimes = ({ date, eventLength, eventTypeId, workingHours, timeForm
{date.format("dddd DD MMMM YYYY")}
- {slots.length > 0 && ( + {slots.length > 0 && slots.map((slot) => (
@@ -25,11 +25,12 @@ const AvailableTimes = ({ date, eventLength, eventTypeId, workingHours, timeForm
- )) + ))} + {isFullyBooked && ( +
+

{user.name} is all booked today.

+
)} - {isFullyBooked &&
-

{user.name} is all booked today.

-
} {!isFullyBooked && slots.length === 0 && !hasErrors &&
}