Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove note about their being more parts to the tutorial #3655

Merged
merged 2 commits into from
Jan 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
7 changes: 3 additions & 4 deletions www/src/pages/tutorial.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ export default () => (
</Helmet>
<h1 css={{ marginTop: 0 }}>Gatsby.js Tutorial</h1>
<p>
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.
</p>
<p>
This tutorial is for <em>everyone</em>! You do not need to be a programmer
Expand Down