mirror of
https://github.com/Steffo99/steffoweb.git
synced 2024-11-21 23:54:30 +00:00
🧹 Code cleanup
This commit is contained in:
parent
1b8f271e67
commit
22ff0c8426
4 changed files with 8 additions and 13 deletions
15
src/App.tsx
15
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 {Bluelib, LayoutThreeCol, Heading, Chapter, Box, BringAttention as B, Anchor, Form} from "@steffo/bluelib-react";
|
||||||
import {Project} from "./components/Project";
|
import {Project} from "./components/Project"
|
||||||
import {MoreProjects} from "./components/MoreProjects";
|
import {MoreProjects} from "./components/MoreProjects"
|
||||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
import {faDiscord, faGithub, faReddit, faTelegram} from "@fortawesome/free-brands-svg-icons"
|
||||||
import {faDiscord, faGithub, faReddit, faTelegram, faTwitter} from "@fortawesome/free-brands-svg-icons";
|
import {Account} from "./components/Account"
|
||||||
import {Account} from "./components/Account";
|
import {faEnvelope} from "@fortawesome/free-solid-svg-icons"
|
||||||
import {faEnvelope} from "@fortawesome/free-solid-svg-icons";
|
|
||||||
|
|
||||||
|
|
||||||
type Theme = "paper" | "royalblue" | "hacker" | "sophon"
|
type Theme = "paper" | "royalblue" | "hacker" | "sophon"
|
||||||
|
@ -25,7 +24,7 @@ const FULL_THEME_NAMES: ThemeMap = {
|
||||||
|
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [theme, setTheme] = useState<Theme>("royalblue")
|
const [theme, setTheme] = React.useState<Theme>("royalblue")
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Bluelib theme={theme}>
|
<Bluelib theme={theme}>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import * as ReactDOM from "react-dom"
|
|
||||||
import {IconDefinition} from "@fortawesome/free-regular-svg-icons";
|
import {IconDefinition} from "@fortawesome/free-regular-svg-icons";
|
||||||
import {Panel, Anchor} from "@steffo/bluelib-react";
|
import {Panel, Anchor} from "@steffo/bluelib-react";
|
||||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import * as ReactDOM from "react-dom"
|
|
||||||
import {Anchor} from "@steffo/bluelib-react"
|
import {Anchor} from "@steffo/bluelib-react"
|
||||||
import Style from "./MoreProjects.module.css"
|
import Style from "./MoreProjects.module.css"
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,5 @@ ReactDOM.render(
|
||||||
document.getElementById('root')
|
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();
|
reportWebVitals();
|
||||||
|
|
Loading…
Reference in a new issue