mirror of
https://github.com/maputnik/editor.git
synced 2026-08-30 00:47:25 +00:00
2fef0467b6
## Summary - convert all remaining Field components to const arrow functions - document the refactor in the CHANGELOG ## Testing - `npm run lint` - `npm run build` ------ https://chatgpt.com/codex/tasks/task_e_68684db1b6b88331837307a54e3f9dc1
22 lines
404 B
TypeScript
22 lines
404 B
TypeScript
import InputEnum, {InputEnumProps} from './InputEnum'
|
|
import Fieldset from './Fieldset';
|
|
|
|
|
|
type FieldEnumProps = InputEnumProps & {
|
|
label?: string;
|
|
fieldSpec?: {
|
|
doc: string
|
|
}
|
|
};
|
|
|
|
|
|
const FieldEnum: React.FC<FieldEnumProps> = (props) => {
|
|
return (
|
|
<Fieldset label={props.label} fieldSpec={props.fieldSpec}>
|
|
<InputEnum {...props} />
|
|
</Fieldset>
|
|
);
|
|
};
|
|
|
|
export default FieldEnum;
|