diff --git a/pages/bookings/index.tsx b/pages/bookings/index.tsx index 3a7b481f..eb62b9d4 100644 --- a/pages/bookings/index.tsx +++ b/pages/bookings/index.tsx @@ -2,6 +2,7 @@ import Head from "next/head"; import prisma from "../../lib/prisma"; import { getSession, useSession } from "next-auth/client"; import Shell from "../../components/Shell"; +import dayjs from "dayjs"; export default function Bookings({ bookings }) { const [session, loading] = useSession(); @@ -27,43 +28,39 @@ export default function Bookings({ bookings }) { - Title + Person - Description + Event - - Name - - - Email - + Date + */} - Edit + Actions {bookings.map((booking) => ( - - - {booking.title} + + +
{booking.attendees[0].name}
+
{booking.attendees[0].email}
- - {booking.description} - - - {booking.attendees[0].name} - - - {booking.attendees[0].email} + +
{booking.title}
+
{booking.description}
+ {/* +
+ {dayjs(booking.startTime).format("D MMMM YYYY HH:mm")} +
+ */}