applied whitelabel to PoweredByCal.tsx
parent
9c1621788d
commit
f2b2d79aa5
|
@ -1,7 +1,7 @@
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
import { useIsEmbed } from "@calcom/embed-core/embed-iframe";
|
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";
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||||
|
|
||||||
const PoweredByCal = () => {
|
const PoweredByCal = () => {
|
||||||
|
@ -12,22 +12,22 @@ const PoweredByCal = () => {
|
||||||
<Link href={POWERED_BY_URL}>
|
<Link href={POWERED_BY_URL}>
|
||||||
<a target="_blank" className="text-bookinglight opacity-50 hover:opacity-100 dark:text-white">
|
<a target="_blank" className="text-bookinglight opacity-50 hover:opacity-100 dark:text-white">
|
||||||
{t("powered_by")}{" "}
|
{t("powered_by")}{" "}
|
||||||
{
|
{APP_NAME === "Cal.com" ? (
|
||||||
// eslint-disable-next-line @next/next/no-img-element
|
<>
|
||||||
<img
|
<img
|
||||||
className="relative -mt-px inline h-[10px] w-auto dark:hidden"
|
className="relative -mt-px inline h-[10px] w-auto dark:hidden"
|
||||||
src="/cal-logo-word.svg"
|
src="/cal-logo-word.svg"
|
||||||
alt="Cal.com Logo"
|
alt="Cal.com Logo"
|
||||||
/>
|
/>
|
||||||
}
|
<img
|
||||||
{
|
className="relativ -mt-px hidden h-[10px] w-auto dark:inline"
|
||||||
// eslint-disable-next-line @next/next/no-img-element
|
src="/cal-logo-word-dark.svg"
|
||||||
<img
|
alt="Cal.com Logo"
|
||||||
className="relativ -mt-px hidden h-[10px] w-auto dark:inline"
|
/>
|
||||||
src="/cal-logo-word-dark.svg"
|
</>
|
||||||
alt="Cal.com Logo"
|
) : (
|
||||||
/>
|
<span className="font-semibold">{APP_NAME}</span>
|
||||||
}
|
)}
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue