mirror of
https://github.com/maputnik/editor.git
synced 2026-08-26 15:07:41 +00:00
9540686b40
Keeps the repo clean, same as several other of our repos --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
19 lines
465 B
TypeScript
19 lines
465 B
TypeScript
import React from 'react'
|
|
import InputArray, { FieldArrayProps as InputArrayProps } from './InputArray'
|
|
import Fieldset from './Fieldset'
|
|
|
|
type FieldArrayProps = InputArrayProps & {
|
|
name?: string
|
|
fieldSpec?: {
|
|
doc: string
|
|
}
|
|
};
|
|
|
|
export default class FieldArray extends React.Component<FieldArrayProps> {
|
|
render() {
|
|
return <Fieldset label={this.props.label} fieldSpec={this.props.fieldSpec}>
|
|
<InputArray {...this.props} />
|
|
</Fieldset>
|
|
}
|
|
}
|