Scheduling infrastructure for absolutely everyone.
fix: learn more link missing in add question (#25104)
Dhairyashil Shinde38738c1a3a9c
diff --git a/packages/features/form-builder/FormBuilder.tsx b/packages/features/form-builder/FormBuilder.tsxindex 17f8fa9898e..e133ff1f789 100644--- a/packages/features/form-builder/FormBuilder.tsx+++ b/packages/features/form-builder/FormBuilder.tsx@@ -7,6 +7,7 @@ import { ZodError } from "zod";import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";import { Dialog } from "@calcom/features/components/controlled-dialog";+import { LearnMoreLink } from "@calcom/features/eventtypes/components/LearnMoreLink";import { getCurrencySymbol } from "@calcom/lib/currencyConversions";import { useLocale } from "@calcom/lib/hooks/useLocale";import { md } from "@calcom/lib/markdownIt";@@ -608,14 +609,22 @@ function FieldEditDialog({const variantsConfig = fieldForm.watch("variantsConfig");const fieldTypes = Object.values(fieldTypesConfigMap);- const fieldName = fieldForm.getValues("name");return (<Dialog open={dialog.isOpen} onOpenChange={onOpenChange} modal={false}><DialogContent className="max-h-none" data-testid="edit-field-dialog" forceOverlayWhenNoModal={true}><Form id="form-builder" form={fieldForm} handleSubmit={handleSubmit}><div className="h-auto max-h-[85vh] overflow-auto">- <DialogHeader title={t("add_a_booking_question")} subtitle={t("booking_questions_description")} />+ <DialogHeader+ title={t("add_a_booking_question")}+ subtitle={+ <LearnMoreLink+ t={t}+ i18nKey="booking_questions_description"+ href="https://cal.com/help/event-types/booking-questions"+ />+ }+ /><SelectFielddefaultValue={fieldTypesConfigMap.text}data-testid="test-field-type"@@ -883,7 +892,6 @@ function FieldLabel({ field }: { field: RhfFormField }) {if (fieldsThatSupportLabelAsSafeHtml.includes(field.type)) {return (<span- // eslint-disable-next-line react/no-dangerdangerouslySetInnerHTML={{// Derive from field.label because label might change in b/w and field.labelAsSafeHtml will not be updated.__html: markdownToSafeHTMLClient(field.label || t(field.defaultLabel || "") || ""),