From 22ff0c8426ad771f5733ea7e2ed9fd7e992a690f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 29 Aug 2021 22:35:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Code=20cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 15 +++++++-------- src/components/Account.tsx | 1 - src/components/MoreProjects.jsx | 1 - src/index.tsx | 4 +--- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 37f42fa..3861767 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,10 @@ -import React, {useState} from 'react'; +import React from 'react' import {Bluelib, LayoutThreeCol, Heading, Chapter, Box, BringAttention as B, Anchor, Form} from "@steffo/bluelib-react"; -import {Project} from "./components/Project"; -import {MoreProjects} from "./components/MoreProjects"; -import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; -import {faDiscord, faGithub, faReddit, faTelegram, faTwitter} from "@fortawesome/free-brands-svg-icons"; -import {Account} from "./components/Account"; -import {faEnvelope} from "@fortawesome/free-solid-svg-icons"; +import {Project} from "./components/Project" +import {MoreProjects} from "./components/MoreProjects" +import {faDiscord, faGithub, faReddit, faTelegram} from "@fortawesome/free-brands-svg-icons" +import {Account} from "./components/Account" +import {faEnvelope} from "@fortawesome/free-solid-svg-icons" type Theme = "paper" | "royalblue" | "hacker" | "sophon" @@ -25,7 +24,7 @@ const FULL_THEME_NAMES: ThemeMap = { function App() { - const [theme, setTheme] = useState("royalblue") + const [theme, setTheme] = React.useState("royalblue") return ( diff --git a/src/components/Account.tsx b/src/components/Account.tsx index f47d3e1..562a57d 100644 --- a/src/components/Account.tsx +++ b/src/components/Account.tsx @@ -1,5 +1,4 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {IconDefinition} from "@fortawesome/free-regular-svg-icons"; import {Panel, Anchor} from "@steffo/bluelib-react"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; diff --git a/src/components/MoreProjects.jsx b/src/components/MoreProjects.jsx index a50d92d..0dba744 100644 --- a/src/components/MoreProjects.jsx +++ b/src/components/MoreProjects.jsx @@ -1,5 +1,4 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {Anchor} from "@steffo/bluelib-react" import Style from "./MoreProjects.module.css" diff --git a/src/index.tsx b/src/index.tsx index ef2edf8..e4a931f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -11,7 +11,5 @@ ReactDOM.render( document.getElementById('root') ); -// If you want to start measuring performance in your app, pass a function -// to log results (for example: reportWebVitals(console.log)) -// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals + reportWebVitals();