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();