diff --git a/apps/web/components/booking/AvailableEventLocations.tsx b/apps/web/components/booking/AvailableEventLocations.tsx index e2be596bde..9a75762d65 100644 --- a/apps/web/components/booking/AvailableEventLocations.tsx +++ b/apps/web/components/booking/AvailableEventLocations.tsx @@ -1,9 +1,10 @@ import { getEventLocationType, locationKeyToString } from "@calcom/app-store/locations"; +import { classNames } from "@calcom/lib"; import { Props } from "./pages/AvailabilityPage"; export function AvailableEventLocations({ locations }: { locations: Props["eventType"]["locations"] }) { - return ( + return locations.length ? (
@@ -14,10 +15,13 @@ export function AvailableEventLocations({ locations }: { locations: Props["event
return null;
}
return (
-
+
{locationKeyToString(location)}
@@ -27,5 +31,7 @@ export function AvailableEventLocations({ locations }: { locations: Props["event
-
+
-
+
-
-
+
{getRecurringFreq({ t, recurringEvent: eventType.recurringEvent })}
@@ -542,13 +539,13 @@ const AvailabilityPage = ({ profile, eventType }: Props) => {
type="number"
min="1"
max={eventType.recurringEvent.count}
- className="w-15 dark:text-darkgray-600 h-7 rounded-sm border-gray-300 bg-white text-sm text-gray-600 [appearance:textfield] ltr:mr-2 rtl:ml-2 dark:border-gray-500 dark:bg-gray-600"
+ className="w-15 dark:bg-darkgray-200 h-7 rounded-sm border-gray-300 bg-white text-sm font-medium [appearance:textfield] ltr:mr-2 rtl:ml-2 dark:border-gray-500"
defaultValue={eventType.recurringEvent.count}
onChange={(event) => {
setRecurringEventCount(parseInt(event?.target.value));
}}
/>
-
+
{t("occurrence", {
count: recurringEventCount,
})}
@@ -557,7 +554,7 @@ const AvailabilityPage = ({ profile, eventType }: Props) => {
+
-
-
-
-
+
- {getEveryFreqFor({
- t,
- recurringEvent: eventType.recurringEvent,
- recurringCount: recurringEventCount,
- })}
+ {eventType.price > 0 && (
+
+
+ {getEveryFreqFor({
+ t,
+ recurringEvent: eventType.recurringEvent,
+ recurringCount: recurringEventCount,
+ })}
+ {aDate} {aDate}
+ {t("plus_more", { count: recurringStrings.length - 5 })}
+ {aDate} {aDate}
- {t("plus_more", { count: recurringStrings.length - 5 })}
-
+ {t("requires_ownership_of_a_token") + " " + eventType.metadata.smartContractAddress}
+
+ {t("former_time")}
+
+
- {t("requires_ownership_of_a_token") + " " + eventType.metadata.smartContractAddress}
-
- {t("former_time")}
-
-
+
{profile.name}
-
+
{eventType.title}
{!!eventType.seatsPerTimeSlot && (
@@ -496,83 +498,89 @@ const BookingPage = ({