diff --git a/src/App.js b/src/App.js index a6b0e694..b284bb90 100644 --- a/src/App.js +++ b/src/App.js @@ -1,20 +1,18 @@ import React, { useState, useCallback} from 'react'; import { Router, Switch, Route, Redirect } from 'react-router-dom'; import * as BS from 'react-bootstrap' -import Toggle from 'react-toggle' -import useDarkMode from 'use-dark-mode'; import './App.scss'; import 'bootstrap/dist/css/bootstrap.min.css'; import "react-toggle/style.css" -import { FaSun, FaMoon } from "react-icons/fa"; import Dash from './Pages/Dash.js' -import history from "./History.js"; +import history from "./History.js" import Footer from './Components/Footer.js' import Public from './Pages/Public.js' import Home from './Pages/Home.js' import Settings from './Pages/Settings.js' +import Navbar from './Components/Navbar.js' export default function App() { const [isLoading, setIsLoading] = useState(false); @@ -23,38 +21,11 @@ export default function App() { const [, updateState] = useState(); const forceUpdate = useCallback(() => updateState({}), []); - const darkMode = useDarkMode(false); - - function logOut() { - setIsSubmit(false); - localStorage.removeItem("token"); - localStorage.removeItem("user"); - history.push("/pk-webs"); - forceUpdate(); - } return (