diff --git a/src/App.js b/src/App.js index 5797569..15e0f89 100644 --- a/src/App.js +++ b/src/App.js @@ -6,6 +6,7 @@ import Home from '@/pages/home' import { Provider } from "react-redux" import { HashRouter, Switch, Route, Redirect } from 'react-router-dom' + function App() { return ( @@ -13,7 +14,10 @@ function App() { - + { + return localStorage.getItem("token") ? + '/home' : '/login' + })()} exact />