diff --git a/src/pages/404.jsx b/src/pages/404.jsx index 1f622be..f2e43b5 100644 --- a/src/pages/404.jsx +++ b/src/pages/404.jsx @@ -1,4 +1,5 @@ import React, { Component } from 'react' +import PropTypes from 'prop-types' import { Link } from 'gatsby' import giphyAPI from 'giphy-js-sdk-core' import Layout from '../components/Layout' @@ -41,7 +42,7 @@ class NotFound extends Component { render() { return ( - +

Shenanigans, page not found.

@@ -63,4 +64,8 @@ class NotFound extends Component { } } +NotFound.propTypes = { + location: PropTypes.object +} + export default NotFound diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 2730382..96c5aec 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -6,11 +6,11 @@ import ProjectImage from '../components/atoms/ProjectImage' import FullWidth from '../components/atoms/FullWidth' import styles from './index.module.scss' -const Home = ({ data }) => { +const Home = ({ data, location }) => { const projects = data.allProjectsYaml.edges return ( - + {projects.map(({ node }) => { const { slug, title, img } = node @@ -30,7 +30,8 @@ const Home = ({ data }) => { } Home.propTypes = { - data: PropTypes.object + data: PropTypes.object, + location: PropTypes.object } export default Home diff --git a/src/templates/Project.jsx b/src/templates/Project.jsx index a54d8e1..d8846aa 100644 --- a/src/templates/Project.jsx +++ b/src/templates/Project.jsx @@ -50,7 +50,7 @@ class Project extends Component { const { title, links, techstack } = project return ( - + @@ -84,7 +84,8 @@ ProjectImages.propTypes = { } Project.propTypes = { - data: PropTypes.object.isRequired + data: PropTypes.object.isRequired, + location: PropTypes.object.isRequired } export default Project