mirror of
https://github.com/maputnik/editor.git
synced 2026-09-01 09:57:27 +00:00
2cc179acc1
- Added searchParams based router for easier testing - Added more stories to the storybook
32 lines
701 B
React
32 lines
701 B
React
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
import Block from './Block'
|
|
import InputString from './InputString'
|
|
|
|
export default class FieldComment extends React.Component {
|
|
static propTypes = {
|
|
value: PropTypes.string,
|
|
onChange: PropTypes.func.isRequired,
|
|
}
|
|
|
|
render() {
|
|
const fieldSpec = {
|
|
doc: "Comments for the current layer. This is non-standard and not in the spec."
|
|
};
|
|
|
|
return <Block
|
|
label={"Comments"}
|
|
fieldSpec={fieldSpec}
|
|
data-wd-key="layer-comment"
|
|
>
|
|
<InputString
|
|
multi={true}
|
|
value={this.props.value}
|
|
onChange={this.props.onChange}
|
|
default="Comment..."
|
|
/>
|
|
</Block>
|
|
}
|
|
}
|