mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-14 17:33:30 +01:00
Tabs to spaces in input fields
This commit is contained in:
parent
8e92984d48
commit
95b2dad2a3
3 changed files with 61 additions and 61 deletions
|
@ -3,7 +3,7 @@ import inputStyle from './input.js'
|
|||
|
||||
/*** Number fields with support for min, max and units and documentation*/
|
||||
class StringField extends React.Component {
|
||||
static propTypes = {
|
||||
static propTypes = {
|
||||
onChange: React.PropTypes.func.isRequired,
|
||||
name: React.PropTypes.string.isRequired,
|
||||
value: React.PropTypes.string,
|
||||
|
@ -16,7 +16,7 @@ static propTypes = {
|
|||
return this.props.onChange(value === "" ? null: value)
|
||||
}
|
||||
|
||||
render() {
|
||||
render() {
|
||||
return <div style={inputStyle.property}>
|
||||
<label style={inputStyle.label}>{this.props.name}</label>
|
||||
<input
|
||||
|
|
Loading…
Reference in a new issue