fix: eslint proptype errors
This commit is contained in:
parent
288e60ea97
commit
fd892d53cd
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue