Skip to content

Scheduling infrastructure for absolutely everyone.

chore: deprecate requiresLicense = true (#19374)

Benny Joodfb2232a5916
diff --git a/apps/web/app/(use-page-wrapper)/connect-and-join/page.tsx b/apps/web/app/(use-page-wrapper)/connect-and-join/page.tsx
index a271ffc7ec3..1666fa6c1e4 100644
--- a/apps/web/app/(use-page-wrapper)/connect-and-join/page.tsx
+++ b/apps/web/app/(use-page-wrapper)/connect-and-join/page.tsx
@@ -1,5 +1,7 @@
import { _generateMetadata } from "app/_utils";
+import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired";
+
import LegacyPage from "~/connect-and-join/connect-and-join-view";
export const generateMetadata = async () => {
@@ -9,4 +11,11 @@ export const generateMetadata = async () => {
);
};
-export default LegacyPage;
+const ServerPage = async () => {
+ return (
+ <LicenseRequired>
+ <LegacyPage />
+ </LicenseRequired>
+ );
+};
+export default ServerPage;
diff --git a/apps/web/modules/connect-and-join/connect-and-join-view.tsx b/apps/web/modules/connect-and-join/connect-and-join-view.tsx
index 044a4d0faa1..66645a6ae3a 100644
--- a/apps/web/modules/connect-and-join/connect-and-join-view.tsx
+++ b/apps/web/modules/connect-and-join/connect-and-join-view.tsx
@@ -85,6 +85,4 @@ function ConnectAndJoin() {
);
}
-ConnectAndJoin.requiresLicense = true;
-
export default ConnectAndJoin;