Skip to content

Commit 23f84cb

Browse files
authored
Merge pull request #26 from howtographql/FullstackCourse-Cards
add missing import
2 parents 58a4148 + 277f582 commit 23f84cb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/gatsby-theme/src/pages/courses.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,25 @@ import {
1010
Box,
1111
} from '../components/shared/base';
1212
import { TutorialButton } from '../components/buttons';
13+
import { graphql } from 'gatsby';
1314
import { getTutorialOverviewSlug } from '../utils/getTutorialSlug';
1415
import ProgressBar from '../components/ProgressBar';
1516

16-
const courses = data => {
17+
const courses = ({ data }) => {
1718
const courseSectionData = [
1819
{
1920
heading: `Frontend`,
2021
body: `Implement a web frontend for a Hacker News app that talks to a GraphQL
2122
API. We provide a hosted GraphQL API for you so that you can test your
2223
app in a real world environment.`,
23-
data: data.data.frontend.edges,
24+
data: data.frontend.edges,
2425
},
2526
{
2627
heading: `Backend`,
2728
body: `Implement a GraphQL API that's backed by a database. The tutorial
2829
teach schema design and implement features like authentication,
2930
filtering, pagination and a lot more`,
30-
data: data.data.backend.edges,
31+
data: data.backend.edges,
3132
},
3233
];
3334
return (

0 commit comments

Comments
 (0)