fix: platform booker icons and styling (#18276)

This commit is contained in:
Morgan authored and GitHub committed 2024-12-19 16:45:05 +00:00
1 parent f0d7a757d4
commit 42d78f8099
3 files changed
+4 -13

No files matched your search

@@ -21,19 +21,9 @@ function RenderIcon({
}) {
const isPlatform = useIsPlatform();
if (isPlatform) {
if (eventLocationType.type === "conferencing") return <Icon name="video" className="me-[10px] h-4 w-4" />;
if (eventLocationType.type === "attendeeInPerson" || eventLocationType.type === "inPerson")
return <Icon name="map-pin" className="me-[10px] h-4 w-4" />;
if (eventLocationType.type === "phone" || eventLocationType.type === "userPhone")
return <Icon name="phone" className="me-[10px] h-4 w-4" />;
if (eventLocationType.type === "link") return <Icon name="link" className="me-[10px] h-4 w-4" />;
return <Icon name="book-user" className="me-[10px] h-4 w-4" />;
}
return (
<img
src={eventLocationType.iconUrl}
src={`${isPlatform ? process.env.NEXT_PUBLIC_WEBAPP_URL : ""}${eventLocationType.iconUrl}`}
className={classNames(invertLogoOnDark(eventLocationType?.iconUrl, isTooltip), "me-[10px] h-4 w-4")}
alt={`${eventLocationType.label} icon`}
/>