mirror of
https://github.com/maputnik/editor.git
synced 2026-01-30 17:20:00 +00:00
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>
21 lines
441 B
TypeScript
21 lines
441 B
TypeScript
import React from 'react'
|
|
import InputEnum, {InputEnumProps} from './InputEnum'
|
|
import Fieldset from './Fieldset';
|
|
|
|
|
|
type FieldEnumProps = InputEnumProps & {
|
|
label?: string;
|
|
fieldSpec?: {
|
|
doc: string
|
|
}
|
|
};
|
|
|
|
|
|
export default class FieldEnum extends React.Component<FieldEnumProps> {
|
|
render() {
|
|
return <Fieldset label={this.props.label} fieldSpec={this.props.fieldSpec}>
|
|
<InputEnum {...this.props} />
|
|
</Fieldset>
|
|
}
|
|
}
|