aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorCem Aksoylar <[email protected]>2024-01-12 16:20:34 -0800
committerCem Aksoylar <[email protected]>2024-01-20 22:28:41 -0800
commit00962a72556888b62d94cef7ca3e028f391e08cd (patch)
tree496881ae3b595460fef47b73e8e660b7626507df /docs
parenta0a952413ab02dceec57fccb52a39155be4c0ac7 (diff)
downloadzmk-00962a72556888b62d94cef7ca3e028f391e08cd.tar.gz
zmk-00962a72556888b62d94cef7ca3e028f391e08cd.zip
refactor(docs): Remove no longer necessary React imports
Diffstat (limited to 'docs')
-rw-r--r--docs/src/components/codes/Context.jsx1
-rw-r--r--docs/src/components/codes/Description.jsx1
-rw-r--r--docs/src/components/codes/Footnote.jsx1
-rw-r--r--docs/src/components/codes/FootnoteRef.jsx1
-rw-r--r--docs/src/components/codes/FootnoteRefs.jsx1
-rw-r--r--docs/src/components/codes/Footnotes.jsx1
-rw-r--r--docs/src/components/codes/LinkIcon.jsx1
-rw-r--r--docs/src/components/codes/Name.jsx1
-rw-r--r--docs/src/components/codes/OsLegend.jsx1
-rw-r--r--docs/src/components/codes/OsSupport.jsx1
-rw-r--r--docs/src/components/codes/OsSupportIcon.jsx1
-rw-r--r--docs/src/components/codes/SpellingCaution.jsx1
-rw-r--r--docs/src/components/codes/Table.jsx1
-rw-r--r--docs/src/components/codes/TableRow.jsx1
-rw-r--r--docs/src/components/codes/ToastyContainer.jsx1
-rw-r--r--docs/src/components/codes/ToastyCopyToClipboard.jsx1
-rw-r--r--docs/src/components/custom-board-form.js1
-rw-r--r--docs/src/components/hardware-list.tsx2
-rw-r--r--docs/src/components/interconnect-tabs.tsx2
-rw-r--r--docs/src/components/power-estimate.js1
-rw-r--r--docs/src/pages/index.js1
-rw-r--r--docs/src/pages/power-profiler.js2
22 files changed, 1 insertions, 24 deletions
diff --git a/docs/src/components/codes/Context.jsx b/docs/src/components/codes/Context.jsx
index 4fdcbfc03b..a889af3713 100644
--- a/docs/src/components/codes/Context.jsx
+++ b/docs/src/components/codes/Context.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
export default function Context({ children }) {
diff --git a/docs/src/components/codes/Description.jsx b/docs/src/components/codes/Description.jsx
index 7ad5fc2cca..c37e54d5e4 100644
--- a/docs/src/components/codes/Description.jsx
+++ b/docs/src/components/codes/Description.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
const specialCharactersRegex =
diff --git a/docs/src/components/codes/Footnote.jsx b/docs/src/components/codes/Footnote.jsx
index c9396a30cd..6ec1674090 100644
--- a/docs/src/components/codes/Footnote.jsx
+++ b/docs/src/components/codes/Footnote.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
export default function Footnote({ children, symbol, id }) {
diff --git a/docs/src/components/codes/FootnoteRef.jsx b/docs/src/components/codes/FootnoteRef.jsx
index c7b11a7d02..6f7ecf80ed 100644
--- a/docs/src/components/codes/FootnoteRef.jsx
+++ b/docs/src/components/codes/FootnoteRef.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
export default function FootnoteRef({ children, anchor }) {
diff --git a/docs/src/components/codes/FootnoteRefs.jsx b/docs/src/components/codes/FootnoteRefs.jsx
index 3782c13fba..05253683c7 100644
--- a/docs/src/components/codes/FootnoteRefs.jsx
+++ b/docs/src/components/codes/FootnoteRefs.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
import FootnoteRef from "./FootnoteRef";
diff --git a/docs/src/components/codes/Footnotes.jsx b/docs/src/components/codes/Footnotes.jsx
index b382141f81..300cdff620 100644
--- a/docs/src/components/codes/Footnotes.jsx
+++ b/docs/src/components/codes/Footnotes.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
import Footnote from "./Footnote";
diff --git a/docs/src/components/codes/LinkIcon.jsx b/docs/src/components/codes/LinkIcon.jsx
index 5bfeebd4a1..123080c0db 100644
--- a/docs/src/components/codes/LinkIcon.jsx
+++ b/docs/src/components/codes/LinkIcon.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons";
export default function LinkIcon() {
diff --git a/docs/src/components/codes/Name.jsx b/docs/src/components/codes/Name.jsx
index 52dc7347fd..31c2489189 100644
--- a/docs/src/components/codes/Name.jsx
+++ b/docs/src/components/codes/Name.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
import ToastyCopyToClipboard from "./ToastyCopyToClipboard";
diff --git a/docs/src/components/codes/OsLegend.jsx b/docs/src/components/codes/OsLegend.jsx
index c53907fa3b..cd34e4fe95 100644
--- a/docs/src/components/codes/OsLegend.jsx
+++ b/docs/src/components/codes/OsLegend.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import operatingSystems from "@site/src/data/operating-systems";
export default function OsLegend() {
diff --git a/docs/src/components/codes/OsSupport.jsx b/docs/src/components/codes/OsSupport.jsx
index 2cb60c974f..d34b499dbf 100644
--- a/docs/src/components/codes/OsSupport.jsx
+++ b/docs/src/components/codes/OsSupport.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
import OsSupportIcon from "./OsSupportIcon";
import FootnoteRefs from "./FootnoteRefs";
diff --git a/docs/src/components/codes/OsSupportIcon.jsx b/docs/src/components/codes/OsSupportIcon.jsx
index a518d62a4a..f3083ba95b 100644
--- a/docs/src/components/codes/OsSupportIcon.jsx
+++ b/docs/src/components/codes/OsSupportIcon.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
const Icon = ({ children, className, title }) => (
diff --git a/docs/src/components/codes/SpellingCaution.jsx b/docs/src/components/codes/SpellingCaution.jsx
index 953ab6b5f3..84e6f80058 100644
--- a/docs/src/components/codes/SpellingCaution.jsx
+++ b/docs/src/components/codes/SpellingCaution.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import Admonition from "@theme/Admonition";
export default function SpellingCaution() {
diff --git a/docs/src/components/codes/Table.jsx b/docs/src/components/codes/Table.jsx
index 0596de6a20..6d1c0f2769 100644
--- a/docs/src/components/codes/Table.jsx
+++ b/docs/src/components/codes/Table.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
import TableRow from "./TableRow";
import Footnotes from "./Footnotes";
diff --git a/docs/src/components/codes/TableRow.jsx b/docs/src/components/codes/TableRow.jsx
index a560911f46..ae950ccb17 100644
--- a/docs/src/components/codes/TableRow.jsx
+++ b/docs/src/components/codes/TableRow.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
import Name from "./Name";
import Description from "./Description";
diff --git a/docs/src/components/codes/ToastyContainer.jsx b/docs/src/components/codes/ToastyContainer.jsx
index ee4e3bca21..42f35acfd6 100644
--- a/docs/src/components/codes/ToastyContainer.jsx
+++ b/docs/src/components/codes/ToastyContainer.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
diff --git a/docs/src/components/codes/ToastyCopyToClipboard.jsx b/docs/src/components/codes/ToastyCopyToClipboard.jsx
index b0e9809233..ba9406118e 100644
--- a/docs/src/components/codes/ToastyCopyToClipboard.jsx
+++ b/docs/src/components/codes/ToastyCopyToClipboard.jsx
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
-import React from "react";
import PropTypes from "prop-types";
import { toast } from "react-toastify";
import { CopyToClipboard } from "react-copy-to-clipboard";
diff --git a/docs/src/components/custom-board-form.js b/docs/src/components/custom-board-form.js
index e8ae429454..9b9795f5ec 100644
--- a/docs/src/components/custom-board-form.js
+++ b/docs/src/components/custom-board-form.js
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: MIT
*/
-import React from "react";
import PropTypes from "prop-types";
function CustomBoardForm({
diff --git a/docs/src/components/hardware-list.tsx b/docs/src/components/hardware-list.tsx
index 54034ada3b..86f9a9d059 100644
--- a/docs/src/components/hardware-list.tsx
+++ b/docs/src/components/hardware-list.tsx
@@ -1,5 +1,3 @@
-import React from "react";
-
import Heading from "@theme/Heading";
import { HardwareMetadata } from "../hardware-metadata";
diff --git a/docs/src/components/interconnect-tabs.tsx b/docs/src/components/interconnect-tabs.tsx
index 3ef69ebf2a..8a7a0a4e38 100644
--- a/docs/src/components/interconnect-tabs.tsx
+++ b/docs/src/components/interconnect-tabs.tsx
@@ -1,5 +1,3 @@
-import React from "react";
-
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
diff --git a/docs/src/components/power-estimate.js b/docs/src/components/power-estimate.js
index 2c0a53cd24..8405cd2670 100644
--- a/docs/src/components/power-estimate.js
+++ b/docs/src/components/power-estimate.js
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: MIT
*/
-import React from "react";
import PropTypes from "prop-types";
import {
displayPower,
diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js
index ccaab50868..fa7f641ee6 100644
--- a/docs/src/pages/index.js
+++ b/docs/src/pages/index.js
@@ -1,4 +1,3 @@
-import React from "react";
import classnames from "classnames";
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
diff --git a/docs/src/pages/power-profiler.js b/docs/src/pages/power-profiler.js
index d28886efb8..032200e31b 100644
--- a/docs/src/pages/power-profiler.js
+++ b/docs/src/pages/power-profiler.js
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: MIT
*/
-import React, { useState } from "react";
+import { useState } from "react";
import classnames from "classnames";
import Layout from "@theme/Layout";
import styles from "./styles.module.css";