diff --git a/package.json b/package.json index a4f2f4a2..81b7382f 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "moment": "^2.29.1", "moment-timezone": "^0.5.32", "node-fetch": "^2.6.1", - "node-sass": "^4.14.1", "react": "^17.0.1", "react-bootstrap": "^1.4.0", "react-dom": "^17.0.1", @@ -28,6 +27,8 @@ "react-scripts": "4.0.1", "react-toggle": "^4.1.1", "reactjs-popup": "^2.0.4", + "sass": "^1.43.4", + "twemoji": "^13.1.0", "web-vitals": "^0.2.4", "yup": "^0.32.8" }, diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index a11777cc..00000000 Binary files a/public/favicon.ico and /dev/null differ diff --git a/public/logo192.png b/public/logo192.png deleted file mode 100644 index fc44b0a3..00000000 Binary files a/public/logo192.png and /dev/null differ diff --git a/public/logo512.png b/public/logo512.png deleted file mode 100644 index a4e47a65..00000000 Binary files a/public/logo512.png and /dev/null differ diff --git a/public/manifest.json b/public/manifest.json deleted file mode 100644 index 080d6c77..00000000 --- a/public/manifest.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, - { - "src": "logo192.png", - "type": "image/png", - "sizes": "192x192" - }, - { - "src": "logo512.png", - "type": "image/png", - "sizes": "512x512" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index e9e57dc4..00000000 --- a/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/src/App.js b/src/App.js index cbe79b08..66817686 100644 --- a/src/App.js +++ b/src/App.js @@ -17,51 +17,51 @@ import Navbar from './Components/Navbar.js' export default function App() { - const [isLoading, setIsLoading] = useState(false); - const [isSubmit, setIsSubmit] = useState(false); - const [isInvalid, setIsInvalid] = useState(false); + const [isLoading, setIsLoading] = useState(false); + const [isSubmit, setIsSubmit] = useState(false); + const [isInvalid, setIsInvalid] = useState(false); - const [, updateState] = useState(); - const forceUpdate = useCallback(() => updateState({}), []); + const [, updateState] = useState(); + const forceUpdate = useCallback(() => updateState({}), []); - useEffect(() => { - if (localStorage.getItem("pk-darkmode")) { - document.body.classList.add('dark-mode') - } - else { - document.body.classList.remove('dark-mode') - } - forceUpdate(); + useEffect(() => { + if (localStorage.getItem("pk-darkmode")) { + document.body.classList.add('dark-mode') + } + else { + document.body.classList.remove('dark-mode') + } + forceUpdate(); }, []); - return ( -
- - -
- - - - { !localStorage.getItem('token') || isInvalid ? : - } - - - - - - - - - - - -