fix: eslint proptype errors

This commit is contained in:
Nick 2020-10-26 17:10:17 -05:00 committed by innovaker
parent 288e60ea97
commit fd892d53cd

View file

@ -5,6 +5,7 @@ import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import useBaseUrl from "@docusaurus/useBaseUrl"; import useBaseUrl from "@docusaurus/useBaseUrl";
import styles from "./styles.module.css"; import styles from "./styles.module.css";
import PropTypes from "prop-types";
const features = [ const features = [
{ {
@ -46,6 +47,12 @@ function Feature({ imageUrl, title, description }) {
); );
} }
Feature.propTypes = {
imageUrl: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
};
function Home() { function Home() {
const context = useDocusaurusContext(); const context = useDocusaurusContext();
const { siteConfig = {} } = context; const { siteConfig = {} } = context;