summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorNick <nick.win999@gmail.com>2020-10-26 17:10:17 -0500
committerinnovaker <66737976+innovaker@users.noreply.github.com>2020-10-25 23:45:28 +0000
commitfd892d53cd0c2b47041e3b43d86e97b5c6ff6abe (patch)
treea690e9b3240c7e194958f442c8e558f35dbf3fb7 /docs/src
parent288e60ea97f13a1e350b144abeb47a117d4689dc (diff)
fix: eslint proptype errors
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/pages/index.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js
index 682082d..7019e57 100644
--- a/docs/src/pages/index.js
+++ b/docs/src/pages/index.js
@@ -5,6 +5,7 @@ import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import useBaseUrl from "@docusaurus/useBaseUrl";
import styles from "./styles.module.css";
+import PropTypes from "prop-types";
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() {
const context = useDocusaurusContext();
const { siteConfig = {} } = context;