feat(form-builder): format field labels with spaces (#27858)
Co-authored-by: Romit <85230081+romitg2@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user