contests
This commit is contained in:
12
src/App.tsx
12
src/App.tsx
@@ -8,8 +8,17 @@ import Home from './pages/Home';
|
||||
import Mission from './pages/Mission';
|
||||
import ArticleEditor from './pages/ArticleEditor';
|
||||
import Article from './pages/Article';
|
||||
import { useEffect } from 'react';
|
||||
import { loadTokensFromLocalStorage } from './redux/slices/auth';
|
||||
import { useAppDispatch } from './redux/hooks';
|
||||
|
||||
function App() {
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(loadTokensFromLocalStorage());
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="w-full h-full bg-liquid-background flex justify-center">
|
||||
<div className="relative w-full max-w-[1600px] h-full ">
|
||||
@@ -29,3 +38,6 @@ function App() {
|
||||
}
|
||||
|
||||
export default App;
|
||||
function useAppdispatch() {
|
||||
throw new Error('Function not implemented.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user