Reverts license check on payment

Since it's a public page
pull/2870/head
zomars 2022-05-26 12:05:51 -06:00
parent 2f832800fc
commit b973f971a7
1 changed files with 3 additions and 5 deletions

View File

@ -6,12 +6,11 @@ import timezone from "dayjs/plugin/timezone";
import toArray from "dayjs/plugin/toArray";
import utc from "dayjs/plugin/utc";
import Head from "next/head";
import React, { FC, useEffect, useState } from "react";
import { FC, useEffect, useState } from "react";
import { FormattedNumber, IntlProvider } from "react-intl";
import { sdkActionManager, useIsEmbed } from "@calcom/embed-core";
import getStripe from "@calcom/stripe/client";
import LicenseRequired from "@ee/components/LicenseRequired";
import PaymentComponent from "@ee/components/stripe/Payment";
import { PaymentPageProps } from "@ee/pages/payment/[uid]";
@ -71,8 +70,7 @@ const PaymentPage: FC<PaymentPageProps> = (props) => {
<span className="hidden sm:inline-block sm:h-screen sm:align-middle" aria-hidden="true">
&#8203;
</span>
<LicenseRequired
as="div"
<div
className={classNames(
"main inline-block transform overflow-hidden rounded-lg border border-neutral-200 bg-white px-8 pt-5 pb-4 text-left align-bottom transition-all dark:border-neutral-700 dark:bg-gray-800 sm:w-full sm:max-w-lg sm:py-6 sm:align-middle",
isEmbed ? "" : "sm:my-8"
@ -153,7 +151,7 @@ const PaymentPage: FC<PaymentPageProps> = (props) => {
<a href="https://cal.com/signup">{t("create_booking_link_with_calcom")}</a>
</div>
)}
</LicenseRequired>
</div>
</div>
</div>
</div>