diff --git a/www/src/components/search-form.js b/www/src/components/search-form.js index 277a9ec83b327..bb38b8d4a78a4 100644 --- a/www/src/components/search-form.js +++ b/www/src/components/search-form.js @@ -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() { @@ -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 + }} /> ) : null diff --git a/www/src/pages/tutorial.js b/www/src/pages/tutorial.js index a21e0a987c097..84f5575fbf5d1 100644 --- a/www/src/pages/tutorial.js +++ b/www/src/pages/tutorial.js @@ -11,10 +11,9 @@ export default () => (

Gatsby.js Tutorial

- Hi! We’re so happy you decided to try using Gatsby. This tutorial has (or - rather will have once all parts are written) five parts that'll walk you - from getting started developing and building Gatsby sites to deploying a - finished and polished high performance static PWA. + 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.

This tutorial is for everyone! You do not need to be a programmer