Skip to content

Scheduling infrastructure for absolutely everyone.

fix: location icon doesn't change according to theme (#11504)

Rajiv Sahal666428ba53bd
diff --git a/apps/web/components/eventtype/EventSetupTab.tsx b/apps/web/components/eventtype/EventSetupTab.tsx
index fbff6af59a3..3df736b8761 100644
--- a/apps/web/components/eventtype/EventSetupTab.tsx
+++ b/apps/web/components/eventtype/EventSetupTab.tsx
@@ -294,7 +294,6 @@ export const EventSetupTab = (
const eventLabel =
location[eventLocationType.defaultValueVariable] || t(eventLocationType.label);
-
return (
<li
key={`${location.type}${index}`}
diff --git a/apps/web/public/map-pin.svg b/apps/web/public/map-pin-dark.svg
similarity index 100%
rename from apps/web/public/map-pin.svg
rename to apps/web/public/map-pin-dark.svg
diff --git a/packages/app-store/locations.ts b/packages/app-store/locations.ts
index 019a53507ae..68358d839f3 100644
--- a/packages/app-store/locations.ts
+++ b/packages/app-store/locations.ts
@@ -91,7 +91,7 @@ export const defaultLocations: DefaultEventLocationType[] = [
attendeeInputType: "attendeeAddress",
attendeeInputPlaceholder: "enter_address",
defaultValueVariable: "attendeeAddress",
- iconUrl: "/map-pin.svg",
+ iconUrl: "/map-pin-dark.svg",
category: "in person",
},
{
@@ -103,7 +103,7 @@ export const defaultLocations: DefaultEventLocationType[] = [
// HACK:
variable: "locationAddress",
defaultValueVariable: "address",
- iconUrl: "/map-pin.svg",
+ iconUrl: "/map-pin-dark.svg",
category: "in person",
},
{
diff --git a/packages/features/bookings/components/event-meta/AvailableEventLocations.tsx b/packages/features/bookings/components/event-meta/AvailableEventLocations.tsx
index 9834126e70f..cc8b6e253ee 100644
--- a/packages/features/bookings/components/event-meta/AvailableEventLocations.tsx
+++ b/packages/features/bookings/components/event-meta/AvailableEventLocations.tsx
@@ -96,7 +96,7 @@ export function AvailableEventLocations({ locations }: { locations: LocationObje
return filteredLocations.length > 1 ? (
<div className="flex flex-row items-center text-sm font-medium">
<img
- src="/map-pin.svg"
+ src="/map-pin-dark.svg"
className={classNames("me-[10px] h-4 w-4 opacity-70 dark:invert")}
alt="map-pin"
/>