mirror of
https://github.com/maputnik/editor.git
synced 2026-09-10 22:37:27 +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
17 lines
433 B
TypeScript
17 lines
433 B
TypeScript
import InputDynamicArray, {FieldDynamicArrayProps as InputDynamicArrayProps} from './InputDynamicArray'
|
|
import Fieldset from './Fieldset'
|
|
|
|
type FieldDynamicArrayProps = InputDynamicArrayProps & {
|
|
name?: string
|
|
};
|
|
|
|
const FieldDynamicArray: React.FC<FieldDynamicArrayProps> = (props) => {
|
|
return (
|
|
<Fieldset label={props.label}>
|
|
<InputDynamicArray {...props} />
|
|
</Fieldset>
|
|
);
|
|
};
|
|
|
|
export default FieldDynamicArray;
|