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 |
41a11178
|
Vaclav Honzik
|
import { Box, 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 |
b70813cb
|
Vaclav Honzik
|
import { RoutedCatalogItemDetail } 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 |
ff40cb89
|
Schwobik
|
import EditHome from "./features/Home/EditHome"
|
17 |
4f42fa52
|
Václav Honzík
|
import Notification from './features/Notification/Notification'
|
18 |
|
|
import { Fragment } from 'react'
|
19 |
b523c74d
|
Schwobik
|
import Administration from "./features/Administration/Administration"
|
20 |
|
|
import Register from "./features/Auth/Register"
|
21 |
ec88f816
|
Vaclav Honzik
|
|
22 |
846f4f3c
|
Vaclav Honzik
|
const App = () => {
|
23 |
|
|
return (
|
24 |
0d90d67b
|
Vaclav Honzik
|
<ThemeWrapper>
|
25 |
4f42fa52
|
Václav Honzík
|
<Fragment>
|
26 |
|
|
<Notification />
|
27 |
|
|
<Navigation>
|
28 |
dda6e56e
|
Vaclav Honzik
|
<Box sx={{ mx: 5 }}>
|
29 |
4f42fa52
|
Václav Honzík
|
<Routes>
|
30 |
|
|
<Route path="/" element={<Home />} />
|
31 |
f2733d24
|
Vaclav Honzik
|
<Route path="/editHome" element={<EditHome />} />
|
32 |
4f42fa52
|
Václav Honzík
|
<Route path="/catalog" element={<Catalog />} />
|
33 |
|
|
<Route
|
34 |
|
|
path="/catalog/:itemId"
|
35 |
b70813cb
|
Vaclav Honzik
|
element={<RoutedCatalogItemDetail />}
|
36 |
4f42fa52
|
Václav Honzík
|
/>
|
37 |
|
|
<Route path="/login" element={<Login />} />
|
38 |
b523c74d
|
Schwobik
|
<Route path="/register" element={<Register />} />
|
39 |
4f42fa52
|
Václav Honzík
|
<Route path="/logout" element={<Logout />} />
|
40 |
|
|
<Route path="/map" element={<TrackingTool />} />
|
41 |
b523c74d
|
Schwobik
|
<Route path="/administration" element={<Administration />}/>
|
42 |
4f42fa52
|
Václav Honzík
|
<Route path="*" element={<NotFound />} />
|
43 |
|
|
</Routes>
|
44 |
|
|
</Box>
|
45 |
|
|
</Navigation>
|
46 |
|
|
</Fragment>
|
47 |
0d90d67b
|
Vaclav Honzik
|
</ThemeWrapper>
|
48 |
846f4f3c
|
Vaclav Honzik
|
)
|
49 |
|
|
}
|
50 |
ec88f816
|
Vaclav Honzik
|
|
51 |
3b85c076
|
Vaclav Honzik
|
export default App
|