mirror of
https://github.com/maputnik/editor.git
synced 2026-08-27 15:37:27 +00:00
Lint fixes.
This commit is contained in:
@@ -10,6 +10,7 @@ export default class DocLabel extends React.Component {
|
|||||||
PropTypes.string
|
PropTypes.string
|
||||||
]).isRequired,
|
]).isRequired,
|
||||||
fieldSpec: PropTypes.object.isRequired,
|
fieldSpec: PropTypes.object.isRequired,
|
||||||
|
onToggleDoc: PropTypes.func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ class InputBlock extends React.Component {
|
|||||||
children: PropTypes.node.isRequired,
|
children: PropTypes.node.isRequired,
|
||||||
style: PropTypes.object,
|
style: PropTypes.object,
|
||||||
onChange: PropTypes.func,
|
onChange: PropTypes.func,
|
||||||
|
fieldSpec: PropTypes.object,
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
export default function SpecDoc (props={}) {
|
export default class SpecDoc extends React.Component {
|
||||||
const {fieldSpec} = props;
|
static propTypes = {
|
||||||
|
fieldSpec: PropTypes.object.isRequired,
|
||||||
|
}
|
||||||
|
|
||||||
|
render () {
|
||||||
|
const {fieldSpec} = this.props;
|
||||||
|
|
||||||
const {doc} = fieldSpec;
|
const {doc} = fieldSpec;
|
||||||
const sdkSupport = fieldSpec['sdk-support'];
|
const sdkSupport = fieldSpec['sdk-support'];
|
||||||
@@ -52,4 +58,5 @@ export default function SpecDoc (props={}) {
|
|||||||
}
|
}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user