mirror of
https://github.com/maputnik/editor.git
synced 2025-12-30 18:10:01 +00:00
Implement adding public and custom sources
This commit is contained in:
@@ -5,6 +5,7 @@ class StringInput extends React.Component {
|
||||
static propTypes = {
|
||||
value: React.PropTypes.string,
|
||||
style: React.PropTypes.object,
|
||||
default: React.PropTypes.number,
|
||||
onChange: React.PropTypes.func,
|
||||
}
|
||||
|
||||
@@ -15,6 +16,7 @@ class StringInput extends React.Component {
|
||||
...this.props.style
|
||||
}}
|
||||
value={this.props.value}
|
||||
placeholder={this.props.default}
|
||||
onChange={e => this.props.onChange(e.target.value)}
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user