Browse Source

Do the yarn prettier

main
Lucas Lentz 8 years ago
parent
commit
238ffd9709
  1. 8
      src/components/DocSearch/DocSearch.js

8
src/components/DocSearch/DocSearch.js

@ -9,8 +9,8 @@ import {colors, media} from 'theme';
class DocSearch extends Component {
state = {
disabled: false
}
disabled: false,
};
componentDidMount() {
// Initialize Algolia search.
// TODO Is this expensive? Should it be deferred until a user is about to search?
@ -22,12 +22,12 @@ class DocSearch extends Component {
inputSelector: '#algolia-doc-search',
});
} else {
this.setState({ disabled: true})
this.setState({disabled: true});
}
}
render() {
const {disabled} = this.state
const {disabled} = this.state;
return (
<form

Loading…
Cancel
Save