Commit 69b665e4 authored by Ermolaev Timur's avatar Ermolaev Timur

#13 Добавил роуты для перехода по страницам

parent 0373b9dc
import {Routes, Route, Outlet, Navigate, BrowserRouter} from "react-router-dom";
import {Container} from "@mui/material";
import {useSelector} from "react-redux";
function App() {
const App = () => {
return ( return (
<div className="App"> <BrowserRouter>
sadas <Routes>
</div> <Route element={
); <>
} <span>header</span>
<main>
<Container>
<Outlet/>
</Container>
</main>
</>
}>
<Route path={"/"} element={<h1>week page</h1>}/>
<Route path={"/week"} element={<h1>week page</h1>}/>
<Route path={"/month"} element={<h1>month page</h1>}/>
<Route path={"/mytasks"} element={<h1>my tasks page</h1>}/>
<Route path={"/workerstasks"} element={<h1>workers tasks page</h1>}/>
<Route path={"/profile/:id"} element={<h1>profile page</h1>}/>
<Route path={"/sign-up"} element={<h1>sign-up page</h1>}/>
<Route path={"/log-in"} element={<h1>log-in page</h1>}/>
<Route path='*' element={<h1>404</h1>}/>
</Route>
</Routes>
</BrowserRouter>
)
};
export default App; export default App;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment