From e33453c50d0a0b25a777f342e9281b6ea820c9c4 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Mon, 4 Mar 2024 14:04:18 +0000 Subject: [PATCH] hide terms and privacy on self-hosted (#13966) --- .../BookEventForm/BookEventForm.tsx | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx b/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx index 5eef9b990e..434c55c97f 100644 --- a/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx +++ b/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx @@ -4,7 +4,7 @@ import Link from "next/link"; import { useState, useMemo } from "react"; import type { FieldError } from "react-hook-form"; -import { WEBSITE_URL } from "@calcom/lib/constants"; +import { IS_CALCOM, WEBSITE_URL } from "@calcom/lib/constants"; import getPaymentAppData from "@calcom/lib/getPaymentAppData"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Alert, Button, EmptyScreen, Form } from "@calcom/ui"; @@ -112,19 +112,21 @@ export const BookEventForm = ({ /> )} -
- - By proceeding, you agree to our{" "} - - Terms - {" "} - and{" "} - - Privacy Policy - - . - -
+ {IS_CALCOM && ( +
+ + By proceeding, you agree to our{" "} + + Terms + {" "} + and{" "} + + Privacy Policy + + . + +
+ )}
{isInstantMeeting ? (