Browse Source

fix: eslint proptype errors

xmkb
Nick 4 years ago committed by innovaker
parent
commit
fd892d53cd
  1. 7
      docs/src/pages/index.js

7
docs/src/pages/index.js

@ -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;

Loading…
Cancel
Save