From a4c1ac82759c61ce334ac414860517281e66b071 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Tue, 3 Aug 2021 10:47:01 +0200 Subject: [PATCH] added icons to buttons, added mailto to /booking, moved date into one column --- pages/bookings/index.tsx | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/pages/bookings/index.tsx b/pages/bookings/index.tsx index f21bd5acd4..fe5e27a48e 100644 --- a/pages/bookings/index.tsx +++ b/pages/bookings/index.tsx @@ -8,6 +8,7 @@ import { Fragment } from "react"; import { Menu, Transition } from "@headlessui/react"; import { DotsHorizontalIcon } from "@heroicons/react/solid"; import classNames from "@lib/classNames"; +import { ClockIcon, XIcon } from "@heroicons/react/outline"; export default function Bookings({ bookings }) { const [, loading] = useSession(); @@ -51,7 +52,7 @@ export default function Bookings({ bookings }) { + className="hidden sm:table-cell px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> Date @@ -74,9 +75,22 @@ export default function Bookings({ bookings }) {
{booking.title}
-
{booking.attendees[0].email}
+
+
+ {dayjs(booking.startTime).format("D MMMM YYYY")}:{" "} + + {dayjs(booking.startTime).format("HH:mm")} -{" "} + {dayjs(booking.endTime).format("HH:mm")} + +
+
+
+ + {booking.attendees[0].email} + +
- +
{dayjs(booking.startTime).format("D MMMM YYYY")}
@@ -105,11 +119,19 @@ export default function Bookings({ bookings }) { + + @@ -145,6 +167,10 @@ export default function Bookings({ bookings }) { : "text-neutral-700", "group flex items-center px-4 py-2 text-sm font-medium" )}> +