fixed icon on booking page for link locations (#5634)
This commit is contained in:
1 parent
9441a79def
commit
c98bafcd52
6 files changed
+18
-13
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
import { getEventLocationType, locationKeyToString } from "@calcom/app-store/locations";
|
import { getEventLocationType, locationKeyToString } from "@calcom/app-store/locations";
|
||||||
import { classNames } from "@calcom/lib";
|
import { classNames } from "@calcom/lib";
|
||||||
|
import { Icon } from "@calcom/ui";
|
||||||
import Tooltip from "@calcom/ui/v2/core/Tooltip";
|
import Tooltip from "@calcom/ui/v2/core/Tooltip";
|
||||||
|
|
||||||
import { Props } from "./pages/AvailabilityPage";
|
import { Props } from "./pages/AvailabilityPage";
|
||||||
@@ -15,14 +16,18 @@ export function AvailableEventLocations({ locations }: { locations: Props["event
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div key={location.type} className="flex flex-row items-center text-sm font-medium">
|
<div key={location.type} className="flex flex-row items-center text-sm font-medium">
|
||||||
<img
|
{eventLocationType.iconUrl === "/link.svg" ? (
|
||||||
src={eventLocationType.iconUrl}
|
<Icon.FiLink className="dark:text-darkgray-600 mr-[10px] ml-[2px] h-4 w-4 opacity-70 dark:opacity-100 " />
|
||||||
className={classNames(
|
) : (
|
||||||
"mr-[10px] ml-[2px] h-4 w-4 opacity-70 dark:opacity-100 ",
|
<img
|
||||||
!eventLocationType.iconUrl?.includes("api") ? "dark:invert" : ""
|
src={eventLocationType.iconUrl}
|
||||||
)}
|
className={classNames(
|
||||||
alt={`${eventLocationType.label} icon`}
|
"mr-[10px] ml-[2px] h-4 w-4 opacity-70 dark:opacity-100 ",
|
||||||
/>
|
!eventLocationType.iconUrl?.includes("api") ? "dark:invert" : ""
|
||||||
|
)}
|
||||||
|
alt={`${eventLocationType.label} icon`}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<Tooltip content={locationKeyToString(location)}>
|
<Tooltip content={locationKeyToString(location)}>
|
||||||
<p className="truncate">{locationKeyToString(location)}</p>
|
<p className="truncate">{locationKeyToString(location)}</p>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ const BookingDescription: FC<Props> = (props) => {
|
|||||||
<h1 className="font-cal dark:text-darkgray-900 mb-6 break-words text-2xl font-semibold text-gray-900">
|
<h1 className="font-cal dark:text-darkgray-900 mb-6 break-words text-2xl font-semibold text-gray-900">
|
||||||
{eventType.title}
|
{eventType.title}
|
||||||
</h1>
|
</h1>
|
||||||
<div className="dark:text-darkgray-600 flex flex-col space-y-3 text-sm font-medium text-gray-600">
|
<div className="dark:text-darkgray-600 flex flex-col space-y-4 text-sm font-medium text-gray-600">
|
||||||
{eventType?.description && (
|
{eventType?.description && (
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
|
|||||||
@@ -138,10 +138,10 @@ export const EventSetupTab = (
|
|||||||
<div key={index} className="flex flex-grow items-center">
|
<div key={index} className="flex flex-grow items-center">
|
||||||
<img
|
<img
|
||||||
src={eventLocationType.iconUrl}
|
src={eventLocationType.iconUrl}
|
||||||
className="h-6 w-6"
|
className="h-4 w-4"
|
||||||
alt={`${eventLocationType.label} logo`}
|
alt={`${eventLocationType.label} logo`}
|
||||||
/>
|
/>
|
||||||
<span className="truncate text-sm ltr:ml-2 rtl:mr-2">
|
<span className="truncate text-sm ltr:ml-1 rtl:mr-1">
|
||||||
{location[eventLocationType.defaultValueVariable] || eventLocationType.label}
|
{location[eventLocationType.defaultValueVariable] || eventLocationType.label}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-globe"><circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>
|
|
||||||
|
Before Width: | Height: | Size: 409 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>
|
||||||
|
After Width: | Height: | Size: 371 B |
@@ -91,7 +91,7 @@ export const defaultLocations: DefaultEventLocationType[] = [
|
|||||||
variable: "locationLink",
|
variable: "locationLink",
|
||||||
messageForOrganizer: "Provide a Meeting Link",
|
messageForOrganizer: "Provide a Meeting Link",
|
||||||
defaultValueVariable: "link",
|
defaultValueVariable: "link",
|
||||||
iconUrl: "/globe.svg",
|
iconUrl: "/link.svg",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
default: true,
|
default: true,
|
||||||
|
|||||||
Reference in new issue
Block a user