chore: Make URLs for terms and privacy policy customizable via .env vars (#16350)
This commit is contained in:
1 parent
b6d31129a3
commit
7a57f57e99
6 files changed
+20
-8
No files matched your search
@@ -5,7 +5,7 @@ import { useMemo, useState } from "react";
|
||||
import type { FieldError } from "react-hook-form";
|
||||
|
||||
import type { BookerEvent } from "@calcom/features/bookings/types";
|
||||
import { IS_CALCOM, WEBSITE_URL } from "@calcom/lib/constants";
|
||||
import { WEBSITE_PRIVACY_POLICY_URL, WEBSITE_TERMS_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";
|
||||
@@ -118,7 +118,7 @@ export const BookEventForm = ({
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{!isPlatform && IS_CALCOM && (
|
||||
{!isPlatform && (
|
||||
<div className="text-subtle my-3 w-full text-xs opacity-80">
|
||||
<Trans
|
||||
i18nKey="signing_up_terms"
|
||||
@@ -126,14 +126,14 @@ export const BookEventForm = ({
|
||||
<Link
|
||||
className="text-emphasis hover:underline"
|
||||
key="terms"
|
||||
href={`${WEBSITE_URL}/terms`}
|
||||
href={`${WEBSITE_TERMS_URL}`}
|
||||
target="_blank">
|
||||
Terms
|
||||
</Link>,
|
||||
<Link
|
||||
className="text-emphasis hover:underline"
|
||||
key="privacy"
|
||||
href={`${WEBSITE_URL}/privacy`}
|
||||
href={`${WEBSITE_PRIVACY_POLICY_URL}`}
|
||||
target="_blank">
|
||||
Privacy Policy.
|
||||
</Link>,
|
||||
|
||||
Reference in new issue
Block a user