cal/packages/lib/invertLogoOnDark.ts
Peer Richelsen 07bfaec24e
fix: inverted logos and new logo for cal video (#11633)
* new logo for cal video

* fixed cal video and other inverted icons

* Discard changes to apps/web/components/eventtype/EventAdvancedTab.tsx

* moved function to lib
2023-10-02 11:36:37 +01:00

7 lines
282 B
TypeScript

// we want to invert all logos that contain -dark in their name
// we don't want to invert logos that are not coming from the app-store
export default function invertLogoOnDark(url?: string) {
return (url?.includes("-dark") || !url?.startsWith("/app-store")) && "dark:invert";
}