Skip to content

Commit 28e9738

Browse files
committed
link is working
1 parent 5bc993a commit 28e9738

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/components/landing/hero.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react"
2-
import { navigate } from "@reach/router"
2+
import { Link } from "gatsby"
33
import HeadingOne from "../typography/HeadingOne"
44
import BodyOne from "../typography/BodyOne"
55
import RedBlockButton from "../buttons/RedBlockButton"
@@ -24,11 +24,8 @@ const Hero = () => (
2424
a design system using Apollo. Everything you learn here will not be a
2525
waste of time, it is 100% reproducible for production use cases.{" "}
2626
</BodyOne>
27-
<RedBlockButton
28-
className="mr-5"
29-
// onClick={() => navigate(`/introduction`)}
30-
>
31-
Learn now!
27+
<RedBlockButton className="mr-5">
28+
<Link to={`/introduction`}>Learn now!</Link>
3229
</RedBlockButton>
3330

3431
<RedOutlineButton

0 commit comments

Comments
 (0)