From 39d395bf6271dcf7a14023918ec85c8e839c0d6b Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Thu, 17 Mar 2022 19:21:47 +0000 Subject: [PATCH] Reverted to pre-dialog content (#2189) --- apps/web/pages/success.tsx | 314 +++++++++++++++++++------------------ 1 file changed, 160 insertions(+), 154 deletions(-) diff --git a/apps/web/pages/success.tsx b/apps/web/pages/success.tsx index b65e1353..5810bdee 100644 --- a/apps/web/pages/success.tsx +++ b/apps/web/pages/success.tsx @@ -11,7 +11,6 @@ import { useRouter } from "next/router"; import { useEffect, useState } from "react"; import Button from "@calcom/ui/Button"; -import { Dialog, DialogContent, DialogFooter } from "@calcom/ui/Dialog"; import { EmailInput } from "@calcom/ui/form/fields"; import { asStringOrThrow, asStringOrNull } from "@lib/asStringOrNull"; @@ -100,158 +99,165 @@ export default function Success(props: inferSSRProps) />
- - { - e.preventDefault(); - }}> -
- {!needsConfirmation && } - {needsConfirmation && } -
-
- -
-
-

- {needsConfirmation - ? props.profile.name !== null - ? t("user_needs_to_confirm_or_reject_booking", { user: props.profile.name }) - : t("needs_to_be_confirmed_or_rejected") - : t("emailed_you_and_attendees")} -

-
-
-
{t("what")}
-
{eventName}
-
{t("when")}
-
- {date.format("dddd, DD MMMM YYYY")} -
- {date.format(is24h ? "H:mm" : "h:mma")} - {props.eventType.length} mins{" "} - - ({localStorage.getItem("timeOption.preferredTimeZone") || dayjs.tz.guess()}) - -
- {location && ( - <> -
{t("where")}
-
- {location.startsWith("http") ? ( - - {location} - - ) : ( - location - )} +
+
+
+ +
)) ||