Skip to content

Commit

Permalink
Update index.md (#10307)
Browse files Browse the repository at this point in the history
updated import of `emotion/core` in place of `react-emotion` and made commensurate change of `className` prop to `css.`

<!--
  Q. Which branch should I use for my pull request?
  A. Your best bet is to go for `master`. If you are unsure, ask in the PR, and a Gatsby mantainer will be happy to help :)

  Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2.

  Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/
-->
  • Loading branch information
wesleylhandy authored and DSchau committed Dec 5, 2018
1 parent d3b0454 commit 930e261
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/tutorial/part-seven/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ links.

```jsx{3,22-28,44,63-65}:title=src/pages/index.js
import React from "react"
import { css } from "react-emotion"
import { css } from "@emotion/core"
import { Link, graphql } from "gatsby"
import { rhythm } from "../utils/typography"
import Layout from "../components/layout"
Expand All @@ -341,7 +341,7 @@ export default ({ data }) => {
<Layout>
<div>
<h1
className={css`
css={css`
display: inline-block;
border-bottom: 1px solid;
`}
Expand All @@ -353,19 +353,19 @@ export default ({ data }) => {
<div key={node.id}>
<Link
to={node.fields.slug}
className={css`
css={css`
text-decoration: none;
color: inherit;
`}
>
<h3
className={css`
css={css`
margin-bottom: ${rhythm(1 / 4)};
`}
>
{node.frontmatter.title}{" "}
<span
className={css`
css={css`
color: #bbb;
`}
>
Expand Down

0 comments on commit 930e261

Please sign in to comment.