mirror of https://github.com/embarklabs/embark.git
fix misc issues reported by linter
This commit is contained in:
parent
6f0be96243
commit
f5479baf4c
|
@ -77,8 +77,6 @@ class Console extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {value} = this.state;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Row>
|
<Row>
|
||||||
<Col>
|
<Col>
|
||||||
|
@ -93,7 +91,6 @@ class Console extends Component {
|
||||||
emptyLabel={false}
|
emptyLabel={false}
|
||||||
labelKey="value"
|
labelKey="value"
|
||||||
multiple={false}
|
multiple={false}
|
||||||
emptyLabel={false}
|
|
||||||
maxResults={10}
|
maxResults={10}
|
||||||
isLoading={this.state.isLoading}
|
isLoading={this.state.isLoading}
|
||||||
onInputChange={(text) => this.handleChange(text)}
|
onInputChange={(text) => this.handleChange(text)}
|
||||||
|
@ -118,7 +115,6 @@ class Console extends Component {
|
||||||
maxHeight="200px"
|
maxHeight="200px"
|
||||||
placeholder="Type a command (e.g help)"
|
placeholder="Type a command (e.g help)"
|
||||||
options={this.props.command_suggestions}
|
options={this.props.command_suggestions}
|
||||||
placeholder="Choose a state..."
|
|
||||||
renderMenuItemChildren={(option) => (
|
renderMenuItemChildren={(option) => (
|
||||||
<div>
|
<div>
|
||||||
{option.value}
|
{option.value}
|
||||||
|
|
|
@ -48,7 +48,7 @@ const sorter = {
|
||||||
let a_levels = a.value.split('.').length
|
let a_levels = a.value.split('.').length
|
||||||
let b_levels = b.value.split('.').length
|
let b_levels = b.value.split('.').length
|
||||||
let diff = b_levels - a_levels
|
let diff = b_levels - a_levels
|
||||||
if (diff !== 0) return lengthDiff * -1
|
if (diff !== 0) return diff * -1
|
||||||
}
|
}
|
||||||
let lengthDiff = b.value.length - a.value.length;
|
let lengthDiff = b.value.length - a.value.length;
|
||||||
if (lengthDiff !== 0) return lengthDiff * -1
|
if (lengthDiff !== 0) return lengthDiff * -1
|
||||||
|
|
Loading…
Reference in New Issue