mirror of
https://github.com/maputnik/editor.git
synced 2026-09-12 07:17:26 +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
20 lines
429 B
TypeScript
20 lines
429 B
TypeScript
import InputArray, { FieldArrayProps as InputArrayProps } from './InputArray'
|
|
import Fieldset from './Fieldset'
|
|
|
|
type FieldArrayProps = InputArrayProps & {
|
|
name?: string
|
|
fieldSpec?: {
|
|
doc: string
|
|
}
|
|
};
|
|
|
|
const FieldArray: React.FC<FieldArrayProps> = (props) => {
|
|
return (
|
|
<Fieldset label={props.label} fieldSpec={props.fieldSpec}>
|
|
<InputArray {...props} />
|
|
</Fieldset>
|
|
);
|
|
};
|
|
|
|
export default FieldArray;
|