diff --git a/src/App.js b/src/App.js index da81bf6..a918d96 100644 --- a/src/App.js +++ b/src/App.js @@ -16,7 +16,7 @@ import Screenery from "./pages/Screenery"; import Autoreact from "./pages/Autoreact"; import Webmimic from "./pages/Webmimic"; -var AppStates = { +const AppStates = { home: 0, articles: 1, software: 2, @@ -36,13 +36,13 @@ function App() { window.removeEventListener('resize', handleWindowSizeChange); } }, []); - var footerStyle = { + const footerStyle = { position: "absolute", bottom: 0, width: "100%", height: "100px", overflow: "hidden" - } + }; //states const [x, setX] = React.useState(0) const [y, setY] = React.useState(0) diff --git a/src/background/CircularGradient.js b/src/background/CircularGradient.js index c8fd624..9003d9f 100644 --- a/src/background/CircularGradient.js +++ b/src/background/CircularGradient.js @@ -1,4 +1,4 @@ -import React, {useRef, useState} from 'react'; +import React from 'react'; import './CircularGradient.css'; const CircularGradient = (props) => { diff --git a/src/components/AllSoftwarePC.js b/src/components/AllSoftwarePC.js index a010075..2153b02 100644 --- a/src/components/AllSoftwarePC.js +++ b/src/components/AllSoftwarePC.js @@ -2,10 +2,9 @@ import Software from "./Software"; import React from "react"; import "./SectionsForPC.css" import PointedStar from "./PointedStar"; -import {getCustomPages} from "../App"; function AllSoftwarePC({shown, loadCustomPage}) { - var flexStyle = { + const flexStyle = { display: 'flex', flexDirection: 'row', justifyContent: 'center', @@ -13,7 +12,7 @@ function AllSoftwarePC({shown, loadCustomPage}) { width: '100%', height: '125px', pointerEvents: 'inherit', - } + }; let allData = require('../data/software.json'); return (