Skip to content

Commit

Permalink
Removing the max_line_lenth and fixing a linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
reficul31 authored and Treora committed Apr 5, 2017
1 parent 5c2cfc7 commit c197921
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ charset = utf-8

# Styling applicable to the file extension given
[*.js, *.jsx]
# This is due to the fact that github allows only 119 columns of space to view
max_line_length = 119

[*.json]
indent_size = 2
Expand All @@ -30,4 +28,4 @@ indent_style = ignore
insert_final_newline = ignore

[Makefile]
indent_style = tab
indent_style = tab
12 changes: 6 additions & 6 deletions src/overview/components/Overview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import styles from './Overview.css'


class Overview extends React.Component {
componentDidMount() {
if (this.props.grabFocusOnMount) {
this.refs['inputQuery'].focus()
}
}

render() {
return (
<div>
Expand Down Expand Up @@ -42,12 +48,6 @@ class Overview extends React.Component {
</div>
)
}

componentDidMount() {
if (this.props.grabFocusOnMount) {
this.refs['inputQuery'].focus()
}
}
}

const mapStateToProps = state => ourState(state)
Expand Down

0 comments on commit c197921

Please sign in to comment.