From 7a6545bd03c7c0f79434fe609cc16cbf96812e5f Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Mon, 5 Dec 2022 19:12:38 +0530 Subject: [PATCH] Wordpress App Files cleanup (#5858) Co-authored-by: Peer Richelsen --- packages/app-store/apps.browser.generated.tsx | 1 - packages/app-store/wordpress/config.json | 1 - .../wordpress/extensions/EventTypeAppCard.tsx | 43 ------------------- 3 files changed, 45 deletions(-) delete mode 100644 packages/app-store/wordpress/extensions/EventTypeAppCard.tsx diff --git a/packages/app-store/apps.browser.generated.tsx b/packages/app-store/apps.browser.generated.tsx index 1b64236571..0da82056e8 100644 --- a/packages/app-store/apps.browser.generated.tsx +++ b/packages/app-store/apps.browser.generated.tsx @@ -38,5 +38,4 @@ export const EventTypeAddonMap = { qr_code: dynamic(() => import("./qr_code/extensions/EventTypeAppCard")), rainbow: dynamic(() => import("./rainbow/extensions/EventTypeAppCard")), stripepayment: dynamic(() => import("./stripepayment/extensions/EventTypeAppCard")), - wordpress: dynamic(() => import("./wordpress/extensions/EventTypeAppCard")), }; diff --git a/packages/app-store/wordpress/config.json b/packages/app-store/wordpress/config.json index d34d7ee8d9..d45a5e1087 100644 --- a/packages/app-store/wordpress/config.json +++ b/packages/app-store/wordpress/config.json @@ -11,6 +11,5 @@ "publisher": "Cal.com, Inc.", "email": "support@cal.com", "description": "Embedded booking pages right into your wordpress page", - "extendsFeature": "EventType", "__createdUsingCli": true } diff --git a/packages/app-store/wordpress/extensions/EventTypeAppCard.tsx b/packages/app-store/wordpress/extensions/EventTypeAppCard.tsx deleted file mode 100644 index a48a616b8c..0000000000 --- a/packages/app-store/wordpress/extensions/EventTypeAppCard.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { useState } from "react"; - -import { useAppContextWithSchema } from "@calcom/app-store/EventTypeAppContext"; -import AppCard from "@calcom/app-store/_components/AppCard"; -import type { EventTypeAppCardComponent } from "@calcom/app-store/types"; -import { Icon } from "@calcom/ui"; - -import { appDataSchema } from "../zod"; - -const EventTypeAppCard: EventTypeAppCardComponent = function EventTypeAppCard({ eventType, app }) { - const [getAppData, setAppData] = useAppContextWithSchema(); - const isSunrise = getAppData("isSunrise"); - const [enabled, setEnabled] = useState(getAppData("enabled")); - - return ( - { - if (!e) { - setEnabled(false); - setAppData("isSunrise", false); - } else { - setEnabled(true); - setAppData("isSunrise", true); - } - }} - switchChecked={enabled}> -
-
- {isSunrise ? : }I am an AppCard - for Event with Title: {eventType.title} -
{" "} -
- Edit packages/app-store/{app.slug}/extensions/EventTypeAppCard.tsx{" "} - to play with me -
-
-
- ); -}; - -export default EventTypeAppCard;