mirror of
https://github.com/maputnik/editor.git
synced 2026-08-29 08:27:27 +00:00
974dd7bfd9
This is to continue the work of migrating all the jsx files into tsx files. The MO is basically described here: #848. About 7 files to go...
19 lines
392 B
TypeScript
19 lines
392 B
TypeScript
import React from 'react'
|
|
import Block from './Block'
|
|
import InputCheckbox, {InputCheckboxProps} from './InputCheckbox'
|
|
|
|
|
|
type FieldCheckboxProps = InputCheckboxProps & {
|
|
label?: string;
|
|
};
|
|
|
|
|
|
export default class FieldCheckbox extends React.Component<FieldCheckboxProps> {
|
|
render() {
|
|
return <Block label={this.props.label}>
|
|
<InputCheckbox {...this.props} />
|
|
</Block>
|
|
}
|
|
}
|
|
|