feat(form-builder): format field labels with spaces (#27858)

Co-authored-by: Romit <[email protected]>
This commit is contained in:
Shrey-SutariyaandRomit authored and GitHub committed 2026-02-11 11:37:45 +00:00
1 parent dc7b9d91ae
commit b75000ea7b
1 file changed
+2 -1
@@ -1012,12 +1012,13 @@ function VariantFields({
];
const appUiFieldConfig =
fieldTypeConfigVariants.fieldsMap[f.name as keyof typeof fieldTypeConfigVariants.fieldsMap];
return (
<li className={classNames(!isSimpleVariant ? "p-4" : "")} key={f.name}>
{!isSimpleVariant && (
<Label className="flex justify-between">
<span>{`Field ${index + 1}`}</span>
<span className="text-muted">{f.name}</span>
<span className="text-muted">{t(appUiFieldConfig?.defaultLabel || "")}</span>
</Label>
)}
<InputField