@@ -534,9 +565,9 @@ const EmailEmbedPreview = ({
// So we add 'team/' to the url.
const bookingURL = `${eventType.bookerUrl}/${
eventType.teamId !== null ? "team/" : ""
- }${username}/${eventType.slug}?duration=${
- eventType.length
- }&date=${key}&month=${month}&slot=${time}&cal.tz=${timezone}`;
+ }${username}/${
+ eventType.slug
+ }?duration=${selectedDuration}&date=${key}&month=${month}&slot=${time}&cal.tz=${timezone}`;
return (
embed.type === embedType);
+ const [selectedDuration, setSelectedDuration] = useState(eventTypeData?.eventType.length);
const [isEmbedCustomizationOpen, setIsEmbedCustomizationOpen] = useState(true);
const [isBookingCustomizationOpen, setIsBookingCustomizationOpen] = useState(true);
@@ -895,6 +927,8 @@ const EmbedTypeCodeAndPreviewDialogContent = ({
userSettingsTimezone={userSettings?.timeZone}
orgSlug={data?.user?.org?.slug}
isTeamEvent={!!teamSlug}
+ selectedDuration={selectedDuration}
+ setSelectedDuration={setSelectedDuration}
/>
) : (
@@ -1238,6 +1272,7 @@ const EmbedTypeCodeAndPreviewDialogContent = ({
- {!isDisabled && (
-
-
-
- )}
+
+ {!isDisabled && (
+
+
+
+ )}
+ {t("within_date_range")}
+
- {t("within_date_range")}
{t("into_the_future")}
-
+
-
+
{user.name || "Nameless User"}
|