mirror of
https://github.com/maputnik/editor.git
synced 2026-09-10 22:37:27 +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>
21 lines
442 B
TypeScript
21 lines
442 B
TypeScript
import React from 'react'
|
|
import Block from './Block'
|
|
import InputSelect, {InputSelectProps} from './InputSelect'
|
|
|
|
|
|
type FieldSelectProps = InputSelectProps & {
|
|
label?: string
|
|
fieldSpec?: {
|
|
doc: string
|
|
}
|
|
};
|
|
|
|
|
|
export default class FieldSelect extends React.Component<FieldSelectProps> {
|
|
render() {
|
|
return <Block label={this.props.label} fieldSpec={this.props.fieldSpec}>
|
|
<InputSelect {...this.props}/>
|
|
</Block>
|
|
}
|
|
}
|