Skip to content

Commit

Permalink
refactor(docs): Remove no longer necessary React imports
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Jan 13, 2024
1 parent 3e7fb3a commit 32c4c33
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 24 deletions.
1 change: 0 additions & 1 deletion docs/src/components/codes/Context.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/Description.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/

import React from "react";
import PropTypes from "prop-types";

const specialCharactersRegex =
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/Footnote.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/FootnoteRef.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/FootnoteRefs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/Footnotes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/LinkIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/Name.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/OsLegend.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/OsSupport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/OsSupportIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => (
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/SpellingCaution.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/TableRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/ToastyContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
1 change: 0 additions & 1 deletion docs/src/components/codes/ToastyCopyToClipboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/custom-board-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* SPDX-License-Identifier: MIT
*/

import React from "react";
import PropTypes from "prop-types";

function CustomBoardForm({
Expand Down
2 changes: 0 additions & 2 deletions docs/src/components/hardware-list.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import Heading from "@theme/Heading";

import { HardwareMetadata } from "../hardware-metadata";
Expand Down
2 changes: 0 additions & 2 deletions docs/src/components/interconnect-tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

Expand Down
1 change: 0 additions & 1 deletion docs/src/components/power-estimate.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* SPDX-License-Identifier: MIT
*/

import React from "react";
import PropTypes from "prop-types";
import {
displayPower,
Expand Down
1 change: 0 additions & 1 deletion docs/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import classnames from "classnames";
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/power-profiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 32c4c33

Please sign in to comment.