From 288e60ea97f13a1e350b144abeb47a117d4689dc Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Sun, 25 Oct 2020 17:23:51 +0000 Subject: docs: Format docs with prettier npx prettier --write . --- docs/src/pages/index.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'docs/src') diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 1b1fc65..682082d 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -12,7 +12,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 +21,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., }, ]; -- cgit v1.2.3 From fd892d53cd0c2b47041e3b43d86e97b5c6ff6abe Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 26 Oct 2020 17:10:17 -0500 Subject: fix: eslint proptype errors --- docs/src/pages/index.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/src') 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; -- cgit v1.2.3