From a7173a32a038f390b553de41fa98a1d6d4c081e3 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Thu, 1 Jul 2021 10:31:38 +0000 Subject: [PATCH] Updated booking link to proper username --- components/booking/AvailableTimes.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 &&
}