1 |
3b85c076
|
Vaclav Honzik
|
import './App.css'
|
2 |
|
|
import { Routes, Route, Link } from 'react-router-dom'
|
3 |
|
|
import Home from './features/Home/Home'
|
4 |
|
|
import Catalog from './features/Catalog/Catalog'
|
5 |
|
|
import NotFound from './features/NotFound/NotFound'
|
6 |
8370b6c1
|
Vaclav Honzik
|
import { Container, Paper, Theme } from '@mui/material'
|
7 |
846f4f3c
|
Vaclav Honzik
|
import { ThemeProvider } from '@emotion/react'
|
8 |
|
|
import { useSelector } from 'react-redux'
|
9 |
|
|
import { RootState } from './features/redux/store'
|
10 |
8370b6c1
|
Vaclav Honzik
|
import Login from './features/Auth/Login'
|
11 |
f2db3e05
|
Vaclav Honzik
|
import CatalogItemDetail from './features/Catalog/CatalogItemDetail'
|
12 |
456b0111
|
Vaclav Honzik
|
import Navigation from './features/Navigation/Navigation'
|
13 |
788ce11e
|
Vaclav Honzik
|
import TrackingTool from './features/TrackingTool/TrackingTool'
|
14 |
0d90d67b
|
Vaclav Honzik
|
import Logout from './features/Auth/Logout'
|
15 |
|
|
import ThemeWrapper from './features/Theme/ThemeWrapper'
|
16 |
ec88f816
|
Vaclav Honzik
|
|
17 |
846f4f3c
|
Vaclav Honzik
|
const App = () => {
|
18 |
|
|
|
19 |
|
|
return (
|
20 |
0d90d67b
|
Vaclav Honzik
|
<ThemeWrapper>
|
21 |
456b0111
|
Vaclav Honzik
|
<Navigation>
|
22 |
788ce11e
|
Vaclav Honzik
|
<Container>
|
23 |
|
|
<Routes>
|
24 |
|
|
<Route path="/" element={<Home />} />
|
25 |
|
|
<Route path="/catalog" element={<Catalog />} />
|
26 |
|
|
<Route
|
27 |
|
|
path="/catalog/:itemId"
|
28 |
|
|
element={<CatalogItemDetail />}
|
29 |
|
|
/>
|
30 |
|
|
<Route path="/login" element={<Login />} />
|
31 |
0d90d67b
|
Vaclav Honzik
|
<Route path="/logout" element={<Logout />} />
|
32 |
788ce11e
|
Vaclav Honzik
|
<Route path="/map" element={<TrackingTool />} />
|
33 |
|
|
<Route path="*" element={<NotFound />} />
|
34 |
|
|
</Routes>
|
35 |
|
|
</Container>
|
36 |
456b0111
|
Vaclav Honzik
|
</Navigation>
|
37 |
0d90d67b
|
Vaclav Honzik
|
</ThemeWrapper>
|
38 |
846f4f3c
|
Vaclav Honzik
|
)
|
39 |
|
|
}
|
40 |
ec88f816
|
Vaclav Honzik
|
|
41 |
3b85c076
|
Vaclav Honzik
|
export default App
|