diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx index 59240726..09f1c5e3 100644 --- a/apps/web/components/booking/pages/BookingPage.tsx +++ b/apps/web/components/booking/pages/BookingPage.tsx @@ -109,7 +109,7 @@ const BookingPage = ({ const mutation = useMutation(createBooking, { onSuccess: async (responseData) => { - const { attendees, paymentUid } = responseData; + const { id, attendees, paymentUid } = responseData; if (paymentUid) { return await router.push( createPaymentLink({ @@ -143,6 +143,7 @@ const BookingPage = ({ email: attendees[0].email, location, eventName: profile.eventName || "", + bookingId: id, }, }); }, diff --git a/apps/web/pages/success.tsx b/apps/web/pages/success.tsx index b3b1aebf..d20a6034 100644 --- a/apps/web/pages/success.tsx +++ b/apps/web/pages/success.tsx @@ -3,6 +3,7 @@ import { ArrowLeftIcon, ClockIcon, XIcon } from "@heroicons/react/solid"; import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@radix-ui/react-collapsible"; import classNames from "classnames"; import dayjs from "dayjs"; +import localizedFormat from "dayjs/plugin/localizedFormat"; import timezone from "dayjs/plugin/timezone"; import toArray from "dayjs/plugin/toArray"; import utc from "dayjs/plugin/utc"; @@ -44,6 +45,7 @@ import { ssrInit } from "@server/lib/ssr"; dayjs.extend(utc); dayjs.extend(toArray); dayjs.extend(timezone); +dayjs.extend(localizedFormat); function redirectToExternalUrl(url: string) { window.parent.location.href = url; @@ -148,7 +150,7 @@ export default function Success(props: SuccessProps) { const [date, setDate] = useState(dayjs.utc(asStringOrThrow(router.query.date))); const { isReady, Theme } = useTheme(props.profile.theme); - const { eventType } = props; + const { eventType, bookingInfo } = props; const isBackgroundTransparent = useIsBackgroundTransparent(); const isEmbed = useIsEmbed(); @@ -296,6 +298,14 @@ export default function Success(props: SuccessProps) {
{bookingInfo.user.name}
+{bookingInfo.user.email}
+{attendee.name}
+{attendee.email}
+{bookingInfo.description}
+