diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-10-27 12:56:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 12:56:44 -0400 |
commit | 2f09957ae208a49db229f000c9c82905d001b669 (patch) | |
tree | 190e963d61419b0d594953b27a5b84fffb507b0e /docs/src/pages/index.js | |
parent | c707ab45effec92a1943c01def8669e0646ee1e0 (diff) | |
parent | 1ac78498ebf440dd779acf20446e6611812dcf19 (diff) |
Merge pull request #301 from innovaker/docs-eslint-prettier
docs: Add eslint, prettier and eslint-mdx support
Diffstat (limited to 'docs/src/pages/index.js')
-rw-r--r-- | docs/src/pages/index.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 1b1fc65..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 = [ { @@ -12,7 +13,8 @@ const features = [ imageUrl: "img/undraw_zephyr.svg", description: ( <> - With a wide range of architecture support, ZMK is ready for many existing keyboards. + With a wide range of architecture support, ZMK is ready for many + existing keyboards. </> ), }, @@ -20,19 +22,13 @@ const features = [ title: <>Permissive Licensing</>, imageUrl: "img/undraw_open_source.svg", description: ( - <> - MIT licensed to remove any future limitations in innovation. - </> + <>MIT licensed to remove any future limitations in innovation.</> ), }, { title: <>Wireless First</>, imageUrl: "img/undraw_wireless.svg", - description: ( - <> - Designed for the future, including wireless support. - </> - ), + description: <>Designed for the future, including wireless support.</>, }, ]; @@ -51,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; |