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