Projekt

Obecné

Profil

Stáhnout (1.81 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 CatalogItemDetail 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 Notification from './features/Notification/Notification'
17
import { Fragment } from 'react'
18

    
19
const App = () => {
20
    return (
21
        <ThemeWrapper>
22
            <Fragment>
23
                <Notification />
24
                <Navigation>
25
                    <Box sx={{ mx: 10 }}>
26
                        <Routes>
27
                            <Route path="/" element={<Home />} />
28
                            <Route path="/catalog" element={<Catalog />} />
29
                            <Route
30
                                path="/catalog/:itemId"
31
                                element={<CatalogItemDetail />}
32
                            />
33
                            <Route path="/login" element={<Login />} />
34
                            <Route path="/logout" element={<Logout />} />
35
                            <Route path="/map" element={<TrackingTool />} />
36
                            <Route path="*" element={<NotFound />} />
37
                        </Routes>
38
                    </Box>
39
                </Navigation>
40
            </Fragment>
41
        </ThemeWrapper>
42
    )
43
}
44

    
45
export default App
(3-3/6)