mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 23:50:02 +00:00
- Added searchParams based router for easier testing - Added more stories to the storybook
22 lines
442 B
JavaScript
22 lines
442 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import Block from './Block'
|
|
import InputArray from './InputArray'
|
|
import Fieldset from './Fieldset'
|
|
|
|
export default class FieldArray extends React.Component {
|
|
static propTypes = {
|
|
...InputArray.propTypes,
|
|
name: PropTypes.string,
|
|
}
|
|
|
|
render() {
|
|
const {props} = this;
|
|
|
|
return <Fieldset label={props.label}>
|
|
<InputArray {...props} />
|
|
</Fieldset>
|
|
}
|
|
}
|
|
|