Scheduling infrastructure for absolutely everyone.
feat: preview of installed app name on the schedule screen (#13221)
S K B8124627cc513
diff --git a/packages/features/bookings/Booker/components/BookEventForm/BookingFields.tsx b/packages/features/bookings/Booker/components/BookEventForm/BookingFields.tsxindex 1a754d3e6f6..8be7c1bf18a 100644--- a/packages/features/bookings/Booker/components/BookEventForm/BookingFields.tsx+++ b/packages/features/bookings/Booker/components/BookEventForm/BookingFields.tsx@@ -105,7 +105,6 @@ export const BookingFields = ({optionInput.placeholder = option.inputPlaceholder;}});-field.options = options.filter((location): location is NonNullable<(typeof options)[number]> => !!location);diff --git a/packages/features/form-builder/Components.tsx b/packages/features/form-builder/Components.tsxindex b16723d0e95..51b06b62bb9 100644--- a/packages/features/form-builder/Components.tsx+++ b/packages/features/form-builder/Components.tsx@@ -397,6 +397,21 @@ export const Components: Record<FieldType, Component> = {}, [options, setValue, value]);const { t } = useLocale();++ const getCleanLabel = (option: { label: string; value: string }): string | JSX.Element => {+ if (!option.label) {+ return "";+ }++ return option.label.search(/^https?:\/\//) !== -1 ? (+ <a href={option.label} target="_blank">+ <span className="underline">{option.label}</span>+ </a>+ ) : (+ option.label+ );+ };+return (<div><div>@@ -419,7 +434,7 @@ export const Components: Record<FieldType, Component> = {}}checked={value?.value === option.value}/>- <span className="text-emphasis me-2 ms-2 text-sm">{option.label ?? ""}</span>+ <span className="text-emphasis me-2 ms-2 text-sm">{getCleanLabel(option) ?? ""}</span><span>{option.value === "phone" && (<InfoBadge content={t("number_in_international_format")} />