From c98bafcd5259b593504ed3a89cc31f0a542bced1 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Tue, 22 Nov 2022 12:04:06 +0000 Subject: [PATCH] fixed icon on booking page for link locations (#5634) --- .../booking/AvailableEventLocations.tsx | 21 ++++++++++++------- .../components/booking/BookingDescription.tsx | 2 +- .../components/eventtype/EventSetupTab.tsx | 4 ++-- apps/web/public/globe.svg | 1 - apps/web/public/link.svg | 1 + packages/app-store/locations.ts | 2 +- 6 files changed, 18 insertions(+), 13 deletions(-) delete mode 100644 apps/web/public/globe.svg create mode 100644 apps/web/public/link.svg diff --git a/apps/web/components/booking/AvailableEventLocations.tsx b/apps/web/components/booking/AvailableEventLocations.tsx index 31dcada5e2..082ef1f441 100644 --- a/apps/web/components/booking/AvailableEventLocations.tsx +++ b/apps/web/components/booking/AvailableEventLocations.tsx @@ -1,5 +1,6 @@ import { getEventLocationType, locationKeyToString } from "@calcom/app-store/locations"; import { classNames } from "@calcom/lib"; +import { Icon } from "@calcom/ui"; import Tooltip from "@calcom/ui/v2/core/Tooltip"; import { Props } from "./pages/AvailabilityPage"; @@ -15,14 +16,18 @@ export function AvailableEventLocations({ locations }: { locations: Props["event } return (
- {`${eventLocationType.label} + {eventLocationType.iconUrl === "/link.svg" ? ( + + ) : ( + {`${eventLocationType.label} + )}

{locationKeyToString(location)}

diff --git a/apps/web/components/booking/BookingDescription.tsx b/apps/web/components/booking/BookingDescription.tsx index eb721a51a8..1552965e9a 100644 --- a/apps/web/components/booking/BookingDescription.tsx +++ b/apps/web/components/booking/BookingDescription.tsx @@ -55,7 +55,7 @@ const BookingDescription: FC = (props) => {

{eventType.title}

-
+
{eventType?.description && (
{`${eventLocationType.label} - + {location[eventLocationType.defaultValueVariable] || eventLocationType.label}
diff --git a/apps/web/public/globe.svg b/apps/web/public/globe.svg deleted file mode 100644 index 0a0586d367..0000000000 --- a/apps/web/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/web/public/link.svg b/apps/web/public/link.svg new file mode 100644 index 0000000000..455a2d6a5c --- /dev/null +++ b/apps/web/public/link.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/app-store/locations.ts b/packages/app-store/locations.ts index 7c753113ab..d17747d9c3 100644 --- a/packages/app-store/locations.ts +++ b/packages/app-store/locations.ts @@ -91,7 +91,7 @@ export const defaultLocations: DefaultEventLocationType[] = [ variable: "locationLink", messageForOrganizer: "Provide a Meeting Link", defaultValueVariable: "link", - iconUrl: "/globe.svg", + iconUrl: "/link.svg", }, { default: true,