From d0cdcd29e1ca90b9c36894023b483ebf93281dee Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 24 May 2021 20:13:16 +0200 Subject: [PATCH] Fix: Remove unused import, add proptype --- src/templates/Markdown/MarkdownList.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/templates/Markdown/MarkdownList.jsx b/src/templates/Markdown/MarkdownList.jsx index 1dca9405..df974c9c 100644 --- a/src/templates/Markdown/MarkdownList.jsx +++ b/src/templates/Markdown/MarkdownList.jsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import React from 'react' import PropTypes from 'prop-types' import Layout from '../../components/Layout' import HeaderSection from '../../components/HeaderSection' @@ -103,5 +103,6 @@ export default function MarkdownList({ location, pageContext }) { } MarkdownList.propTypes = { - pageContext: PropTypes.object.isRequired + pageContext: PropTypes.object.isRequired, + location: PropTypes.object.isRequired }