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