diff --git a/apps/web/components/eventtype/InstantEventController.tsx b/apps/web/components/eventtype/InstantEventController.tsx index 9a0b42ee2d..bff93027ab 100644 --- a/apps/web/components/eventtype/InstantEventController.tsx +++ b/apps/web/components/eventtype/InstantEventController.tsx @@ -1,3 +1,4 @@ +import type { Webhook } from "@prisma/client"; import { useSession } from "next-auth/react"; import type { EventTypeSetup, FormValues } from "pages/event-types/[type]"; import { useState } from "react"; @@ -5,10 +6,16 @@ import { useFormContext } from "react-hook-form"; import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired"; import useLockedFieldsManager from "@calcom/features/ee/managed-event-types/hooks/useLockedFieldsManager"; +import { WebhookForm } from "@calcom/features/webhooks/components"; +import type { WebhookFormSubmitData } from "@calcom/features/webhooks/components/WebhookForm"; +import WebhookListItem from "@calcom/features/webhooks/components/WebhookListItem"; +import { subscriberUrlReserved } from "@calcom/features/webhooks/lib/subscriberUrlReserved"; import { classNames } from "@calcom/lib"; import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { Alert, Button, EmptyScreen, SettingsToggle } from "@calcom/ui"; -import { PhoneCall } from "@calcom/ui/components/icon"; +import { WebhookTriggerEvents } from "@calcom/prisma/enums"; +import { trpc } from "@calcom/trpc/react"; +import { Alert, Button, EmptyScreen, SettingsToggle, Dialog, DialogContent, showToast } from "@calcom/ui"; +import { PhoneCall, Plus, Lock, Webhook as TbWebhook } from "@calcom/ui/components/icon"; type InstantEventControllerProps = { eventType: EventTypeSetup; @@ -82,11 +89,7 @@ export default function InstantEventController({ } }}>
{t("warning_payment_instant_meeting_event")}
-+ {t("warning_payment_instant_meeting_event")} +
+ > + ) : ( + <> ++ {t("warning_payment_instant_meeting_event")} +
+