refactoring

This commit is contained in:
Hope87
2021-06-01 15:25:01 +03:00
parent af21ce3693
commit bc5af60fac
28 changed files with 355 additions and 261 deletions

View File

@ -8,7 +8,7 @@ const HomePage = lazy(() => import('./pages/HomePage'));
const CandidatePage = lazy(() => import('./pages/CandidatePage'));
const App = () => {
const [isAuth, setIsAuth] = useState(false);
const [isAuth, setIsAuth] = useState(true);
useEffect(() => {
const auth = localStorage.getItem('auth');