Skip to content

Commit 42d78f8

Browse files
fix: platform booker icons and styling (#18276)
1 parent f0d7a75 commit 42d78f8

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

packages/features/bookings/components/event-meta/AvailableEventLocations.tsx

+1-11
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,9 @@ function RenderIcon({
2121
}) {
2222
const isPlatform = useIsPlatform();
2323

24-
if (isPlatform) {
25-
if (eventLocationType.type === "conferencing") return <Icon name="video" className="me-[10px] h-4 w-4" />;
26-
if (eventLocationType.type === "attendeeInPerson" || eventLocationType.type === "inPerson")
27-
return <Icon name="map-pin" className="me-[10px] h-4 w-4" />;
28-
if (eventLocationType.type === "phone" || eventLocationType.type === "userPhone")
29-
return <Icon name="phone" className="me-[10px] h-4 w-4" />;
30-
if (eventLocationType.type === "link") return <Icon name="link" className="me-[10px] h-4 w-4" />;
31-
return <Icon name="book-user" className="me-[10px] h-4 w-4" />;
32-
}
33-
3424
return (
3525
<img
36-
src={eventLocationType.iconUrl}
26+
src={`${isPlatform ? process.env.NEXT_PUBLIC_WEBAPP_URL : ""}${eventLocationType.iconUrl}`}
3727
className={classNames(invertLogoOnDark(eventLocationType?.iconUrl, isTooltip), "me-[10px] h-4 w-4")}
3828
alt={`${eventLocationType.label} icon`}
3929
/>

packages/platform/atoms/globals.css

+1-2
Large diffs are not rendered by default.

packages/platform/examples/base/src/pages/booking.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export default function Bookings(props: { calUsername: string; calEmail: string
9090
{!bookingTitle && eventTypeSlug && !rescheduleUid && (
9191
<>
9292
<Booker
93+
bannerUrl="https://i0.wp.com/mahala.co.uk/wp-content/uploads/2014/12/img_banner-thin_mountains.jpg?fit=800%2C258&ssl=1"
9394
eventSlug={eventTypeSlug}
9495
onCreateBookingSuccess={(data) => {
9596
setBookingTitle(data.data.title ?? "");
@@ -130,6 +131,7 @@ export default function Bookings(props: { calUsername: string; calEmail: string
130131
router.push(`/${data.data.uid}`);
131132
}}
132133
duration={eventTypeDuration}
134+
bannerUrl="https://i0.wp.com/mahala.co.uk/wp-content/uploads/2014/12/img_banner-thin_mountains.jpg?fit=800%2C258&ssl=1"
133135
/>
134136
)}
135137
{bookingTitle && <p>Booking created: {bookingTitle}</p>}

0 commit comments

Comments
 (0)