Projekt

Obecné

Profil

Stáhnout (3.3 KB) Statistiky
| Větev: | Tag: | Revize:
1
import './App.css'
2
import { Routes, Route } 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
import { Box } from '@mui/material'
7
import Login from './features/Auth/Login'
8
import { RoutedCatalogItemDetail } from './features/Catalog/CatalogItemDetail'
9
import Navigation from './features/Navigation/Navigation'
10
import TrackingTool from './features/TrackingTool/TrackingTool'
11
import Logout from './features/Auth/Logout'
12
import ThemeWrapper from './features/Theme/ThemeWrapper'
13
import EditHome from './features/Home/EditHome'
14
import Notification from './features/Notification/Notification'
15
import { Fragment } from 'react'
16
import Administration from './features/Administration/Administration'
17
import Register from './features/Auth/Register'
18
import Bibliography from './features/Bibliography/Bibliography'
19
import EditBibliography from './features/Bibliography/EditBibliography'
20
import ExternalSources from './features/ExternalSources/ExternalSources'
21
import ChangePassword from './features/Administration/ChangePassword'
22
import { RoutedCatalogItemEdit } from './features/Catalog/EditCatalogItem'
23

    
24
const App = () => {
25
    return (
26
        <ThemeWrapper>
27
            <Fragment>
28
                <Notification />
29
                <Navigation>
30
                    <Box sx={{ mx: 5 }}>
31
                        <Routes>
32
                            <Route path="/" element={<Home />} />
33
                            <Route path="/editHome" element={<EditHome />} />
34
                            <Route path="/catalog" element={<Catalog />} />
35
                            <Route
36
                                path="/catalog/:itemId"
37
                                element={<RoutedCatalogItemDetail />}
38
                            />
39
                            <Route
40
                                path="/catalog/edit/:itemId"
41
                                element={<RoutedCatalogItemEdit />}
42
                            />
43
                            <Route path="/login" element={<Login />} />
44
                            <Route path="/register" element={<Register />} />
45
                            <Route path="/logout" element={<Logout />} />
46
                            <Route
47
                                path="/changePassword"
48
                                element={<ChangePassword />}
49
                            />
50
                            <Route path="/map" element={<TrackingTool />} />
51
                            <Route
52
                                path="/administration"
53
                                element={<Administration />}
54
                            />
55
                            <Route
56
                                path="/externalSources"
57
                                element={<ExternalSources />}
58
                            />
59
                            <Route path="/sources" element={<Bibliography />} />
60
                            <Route
61
                                path="/editSources"
62
                                element={<EditBibliography />}
63
                            />
64
                            <Route path="*" element={<NotFound />} />
65
                        </Routes>
66
                    </Box>
67
                </Navigation>
68
            </Fragment>
69
        </ThemeWrapper>
70
    )
71
}
72

    
73
export default App
(3-3/6)