mirror of
https://github.com/maputnik/editor.git
synced 2026-09-02 02:17:26 +00:00
2cc179acc1
- Added searchParams based router for easier testing - Added more stories to the storybook
21 lines
407 B
React
21 lines
407 B
React
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import Block from './Block'
|
|
import InputString from './InputString'
|
|
|
|
export default class FieldString extends React.Component {
|
|
static propTypes = {
|
|
...InputString.propTypes,
|
|
name: PropTypes.string,
|
|
}
|
|
|
|
render() {
|
|
const {props} = this;
|
|
|
|
return <Block label={props.label}>
|
|
<InputString {...props} />
|
|
</Block>
|
|
}
|
|
}
|
|
|