From f2b2d79aa51cca3a70af6bf649b24e22f2fca73a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20M=C3=BCller?= Date: Thu, 1 Dec 2022 12:53:08 +0100 Subject: [PATCH] applied whitelabel to PoweredByCal.tsx --- apps/web/components/ui/PoweredByCal.tsx | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/web/components/ui/PoweredByCal.tsx b/apps/web/components/ui/PoweredByCal.tsx index 702c41f13d..16abadc59f 100644 --- a/apps/web/components/ui/PoweredByCal.tsx +++ b/apps/web/components/ui/PoweredByCal.tsx @@ -1,7 +1,7 @@ import Link from "next/link"; import { useIsEmbed } from "@calcom/embed-core/embed-iframe"; -import { POWERED_BY_URL } from "@calcom/lib/constants"; +import { APP_NAME, POWERED_BY_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; const PoweredByCal = () => { @@ -12,22 +12,22 @@ const PoweredByCal = () => { {t("powered_by")}{" "} - { - // eslint-disable-next-line @next/next/no-img-element - Cal.com Logo - } - { - // eslint-disable-next-line @next/next/no-img-element - Cal.com Logo - } + {APP_NAME === "Cal.com" ? ( + <> + Cal.com Logo + Cal.com Logo + + ) : ( + {APP_NAME} + )}