Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Jan 23, 2018
1 parent 16dc7af commit d83f966
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 7 additions & 5 deletions www/src/components/search-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ class SearchForm extends Component {
}

focusSearchInput(e) {
if (e.key !== `s`) return
if (document.activeElement === this.searchInput) return // eslint-disable-line no-undef
e.preventDefault()
this.searchInput.focus()
if (e.key !== `s`) return
if (document.activeElement === this.searchInput) return // eslint-disable-line no-undef
e.preventDefault()
this.searchInput.focus()
}

componentDidMount() {
Expand Down Expand Up @@ -339,7 +339,9 @@ class SearchForm extends Component {
placeholder="Search docs"
aria-label="Search docs"
title="Hit 's' to search docs"
ref={(input) => { this.searchInput = input }}
ref={input => {
this.searchInput = input
}}
/>
</form>
) : null
Expand Down
5 changes: 2 additions & 3 deletions www/src/pages/tutorial.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ export default () => (
<h1 css={{ marginTop: 0 }}>Gatsby.js Tutorial</h1>
<p>
Hi! We’re so happy you decided to try using Gatsby. This tutorial has five
parts that'll walk you
from getting started developing and building Gatsby sites to deploying a
finished and polished high performance static PWA.
parts that'll walk you from getting started developing and building Gatsby
sites to deploying a finished and polished high performance static PWA.
</p>
<p>
This tutorial is for <em>everyone</em>! You do not need to be a programmer
Expand Down

0 comments on commit d83f966

Please sign in to comment.