diff --git a/apps/web/ee/components/stripe/PaymentPage.tsx b/apps/web/ee/components/stripe/PaymentPage.tsx index e80a79ba..e4e0c897 100644 --- a/apps/web/ee/components/stripe/PaymentPage.tsx +++ b/apps/web/ee/components/stripe/PaymentPage.tsx @@ -8,12 +8,11 @@ import Head from "next/head"; import React, { FC, useEffect, useState } from "react"; import { FormattedNumber, IntlProvider } from "react-intl"; -import { useLocale } from "@calcom/lib/hooks/useLocale"; import getStripe from "@calcom/stripe/client"; -import { Dialog, DialogContent, DialogFooter } from "@calcom/ui/Dialog"; import PaymentComponent from "@ee/components/stripe/Payment"; import { PaymentPageProps } from "@ee/pages/payment/[uid]"; +import { useLocale } from "@lib/hooks/useLocale"; import useTheme from "@lib/hooks/useTheme"; import { isBrowserLocale24h } from "@lib/timeFormat"; @@ -44,86 +43,90 @@ const PaymentPage: FC = (props) => {
- - { - e.preventDefault(); - }}> -
-
- -
-
- -
-

{t("pay_later_instructions")}

-
-
-
{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()}) - +
+
+ -
-
- {props.payment.success && !props.payment.refunded && ( -
{t("paid")}
- )} - {!props.payment.success && ( - - - - )} - {props.payment.refunded && ( -
{t("refunded")}
- )} -
-
- - {!props.profile.hideBranding && ( -
- {t("create_booking_link_with_calcom")} +
+ +
+

+ {t("pay_later_instructions")} +

+
+
{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()}) + +
+ {props.booking.location && ( + <> +
{t("where")}
+
{props.booking.location}
+ + )} +
{t("price")}
+
+ + + +
+
+
+
+
+ {props.payment.success && !props.payment.refunded && ( +
{t("paid")}
)} - + {!props.payment.success && ( + + + + )} + {props.payment.refunded && ( +
{t("refunded")}
+ )} +
+ {!props.profile.hideBranding && ( + + )}
- -
+ +
) : null;