Lint fixes.

This commit is contained in:
orangemug
2020-01-23 08:42:20 +00:00
parent 30facc885f
commit 62f3cbe8fb
3 changed files with 57 additions and 48 deletions
+1
View File
@@ -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) {
+1
View File
@@ -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) {
+9 -2
View File
@@ -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'];
@@ -53,3 +59,4 @@ export default function SpecDoc (props={}) {
</> </>
); );
} }
}