From 082507aea51d857d7c21b898e59318a77805e655 Mon Sep 17 00:00:00 2001 From: Nafees Nazik <84864519+G3root@users.noreply.github.com> Date: Tue, 9 May 2023 20:57:09 +0530 Subject: [PATCH] fix: location select logo in dark mode (#8633) * fix: logo * fix: icon on booker --------- Co-authored-by: Hariom Balhara --- apps/web/components/booking/AvailableEventLocations.tsx | 2 +- apps/web/components/eventtype/EventSetupTab.tsx | 2 +- apps/web/components/ui/form/LocationSelect.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/components/booking/AvailableEventLocations.tsx b/apps/web/components/booking/AvailableEventLocations.tsx index c0825cd53f..e03daa0da5 100644 --- a/apps/web/components/booking/AvailableEventLocations.tsx +++ b/apps/web/components/booking/AvailableEventLocations.tsx @@ -47,7 +47,7 @@ export function AvailableEventLocations({ locations }: { locations: Props["event src={eventLocationType.iconUrl} className={classNames( "ml-[2px] h-4 w-4 opacity-70 ltr:mr-[10px] rtl:ml-[10px] dark:opacity-100 ", - !eventLocationType.iconUrl?.includes("api") ? "dark:invert-[.65]" : "" + !eventLocationType.iconUrl?.startsWith("/app-store") ? "dark:invert-[.65]" : "" )} alt={`${eventLocationType.label} icon`} /> diff --git a/apps/web/components/eventtype/EventSetupTab.tsx b/apps/web/components/eventtype/EventSetupTab.tsx index c3949449fc..222a8312d5 100644 --- a/apps/web/components/eventtype/EventSetupTab.tsx +++ b/apps/web/components/eventtype/EventSetupTab.tsx @@ -285,7 +285,7 @@ export const EventSetupTab = ( "h-4 w-4", // invert all the icons except app icons eventLocationType.iconUrl && - !eventLocationType.iconUrl.startsWith("/api") && + !eventLocationType.iconUrl.startsWith("/app-store") && "dark:invert" )} alt={`${eventLocationType.label} logo`} diff --git a/apps/web/components/ui/form/LocationSelect.tsx b/apps/web/components/ui/form/LocationSelect.tsx index f81e11d225..846082b26d 100644 --- a/apps/web/components/ui/form/LocationSelect.tsx +++ b/apps/web/components/ui/form/LocationSelect.tsx @@ -25,7 +25,7 @@ const OptionWithIcon = ({ icon, label }: { icon?: string; label: string }) => { src={icon} alt="cover" // invert all the icons except app icons - className={cx("h-3.5 w-3.5", icon && !icon.startsWith("/api") && "dark:invert")} + className={cx("h-3.5 w-3.5", icon && !icon.startsWith("/app-store") && "dark:invert")} /> )} {label}