feat: add Text field preview in settings (#2389)

Closes #2325
This commit is contained in:
Thaïs
2023-11-09 08:25:46 +01:00
committed by GitHub
parent 4efbe4d798
commit 1f5492b4a7
23 changed files with 461 additions and 540 deletions

View File

@ -118,7 +118,13 @@ export const SettingsObjectNewFieldStep2 = () => {
}
/>
<SettingsObjectFieldTypeSelectSection
type={formValues.type}
fieldIconKey={formValues.icon}
fieldLabel={formValues.label || 'Employees'}
fieldType={formValues.type}
isObjectCustom={activeObjectMetadataItem.isCustom}
objectIconKey={activeObjectMetadataItem.icon}
objectLabelPlural={activeObjectMetadataItem.labelPlural}
objectNamePlural={activeObjectMetadataItem.namePlural}
onChange={(type) =>
setFormValues((previousValues) => ({ ...previousValues, type }))
}