Projekt

Obecné

Profil

Stáhnout (2.38 KB) Statistiky
| Větev: | Tag: | Revize:
1
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
import { Box, Container, Paper, Theme } from '@mui/material'
7
import { ThemeProvider } from '@emotion/react'
8
import { useSelector } from 'react-redux'
9
import { RootState } from './features/redux/store'
10
import Login from './features/Auth/Login'
11
import { RoutedCatalogItemDetail } from './features/Catalog/CatalogItemDetail'
12
import Navigation from './features/Navigation/Navigation'
13
import TrackingTool from './features/TrackingTool/TrackingTool'
14
import Logout from './features/Auth/Logout'
15
import ThemeWrapper from './features/Theme/ThemeWrapper'
16
import EditHome from "./features/Home/EditHome"
17
import Notification from './features/Notification/Notification'
18
import { Fragment } from 'react'
19
import Administration from "./features/Administration/Administration"
20
import Register from "./features/Auth/Register"
21
import ExternalSources from "./features/ExternalSources/ExternalSources"
22

    
23
const App = () => {
24
    return (
25
        <ThemeWrapper>
26
            <Fragment>
27
                <Notification />
28
                <Navigation>
29
                    <Box sx={{ mx: 5 }}>
30
                        <Routes>
31
                            <Route path="/" element={<Home />} />
32
                            <Route path="/editHome" element={<EditHome />} />
33
                            <Route path="/catalog" element={<Catalog />} />
34
                            <Route
35
                                path="/catalog/:itemId"
36
                                element={<RoutedCatalogItemDetail />}
37
                            />
38
                            <Route path="/login" element={<Login />} />
39
                            <Route path="/register" element={<Register />} />
40
                            <Route path="/logout" element={<Logout />} />
41
                            <Route path="/map" element={<TrackingTool />} />
42
                            <Route path="/administration" element={<Administration />}/>
43
                            <Route path="/externalSources" element={<ExternalSources />}/>
44
                            <Route path="*" element={<NotFound />} />
45
                        </Routes>
46
                    </Box>
47
                </Navigation>
48
            </Fragment>
49
        </ThemeWrapper>
50
    )
51
}
52

    
53
export default App
(3-3/6)