Scheduling infrastructure for absolutely everyone.
use LOGO constant instead of fixed string in OgImages (#5234)
René Müllerbf68ec1ad52b
diff --git a/packages/lib/OgImages.tsx b/packages/lib/OgImages.tsxindex 92d433c2acd..071ef5a60aa 100644--- a/packages/lib/OgImages.tsx+++ b/packages/lib/OgImages.tsx@@ -1,6 +1,6 @@import React from "react";-import { CAL_URL } from "./constants";+import { CAL_URL, LOGO } from "./constants";// Ensures tw prop is typed.declare module "react" {@@ -119,7 +119,7 @@ export const Meeting = ({ title, users = [], profile }: MeetingImageProps) => {<Wrapper variant="dark"><div tw="h-full flex flex-col justify-start"><div tw="flex items-center justify-center" style={{ fontFamily: "cal", fontWeight: 300 }}>- <img src={`${CAL_URL}/cal-logo-word-black.svg`} width="350" alt="Logo" />+ <img src={`${CAL_URL}/${LOGO}`} width="350" alt="Logo" />{avatars.length > 0 && <div tw="font-bold text-black text-[92px] mx-8 bottom-2">/</div>}<div tw="flex flex-row">{avatars.slice(0, 3).map((avatar) => (@@ -189,12 +189,7 @@ const VisualBlur = ({ visualSlug }: { visualSlug: string }) => {export const App = ({ name, description, slug }: AppImageProps) => (<Wrapper>- <img- src={`${CAL_URL}/cal-logo-word-black.svg`}- width="150"- alt="Logo"- tw="absolute right-[48px] top-[48px]"- />+ <img src={`${CAL_URL}/${LOGO}`} width="150" alt="Logo" tw="absolute right-[48px] top-[48px]" /><VisualBlur visualSlug={slug} />