-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
68 lines (65 loc) · 3.03 KB
/
App.tsx
File metadata and controls
68 lines (65 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import React, {Suspense} from 'react';
import './App.css';
import {Navigate, Route, Routes} from "react-router-dom";
import Home from "./pages/Home";
import HeaderForm from "./components/layout/header/HeaderForm";
import AuthPage from "./pages/AuthPage";
import SignUpPage from "./pages/SIgnUpPage";
import Board from "./pages/board/Board";
import "bootstrap/dist/css/bootstrap.min.css";
import {Container, ThemeProvider} from "react-bootstrap";
import BoardInfo from "./pages/board/board-info/BoardInfo";
import NewBoard from "./pages/board/new-board/NewBoard";
import WarningModal from "./components/modal/WarningModal";
import ErrorModal from "./components/modal/ErrorModal";
import AlertModal from "./components/modal/AlertModal";
import {QueryClient, QueryClientProvider} from 'react-query'
import MyPage from "./pages/my-page/MyPage";
import LoadingSpinners from "./components/spinner/LoadingSpinner";
import Footer from "./resources/Footer";
import TechStack from "./pages/tech-stack/TechStack";
// import classes from "./App.module.css"
const queryClient = new QueryClient()
function App() {
// @ts-ignore
return (
<>
<QueryClientProvider client={queryClient}>
<AlertModal/>
<ErrorModal/>
<WarningModal/>
<ThemeProvider
breakpoints={['xxxl', 'xxl', 'xl', 'lg', 'md', 'sm', 'xs', 'xxs']}
minBreakpoint="xxs"
>
<header><HeaderForm/></header>
<main>
<body className="d-flex flex-column min-vh-100">
<Suspense fallback={<LoadingSpinners/>}>
<Container className={"mx-auto my-3"}>
<Routes>
<Route path="/" element={<Navigate to="/home"/>}/>
<Route path="/home" element={<Home/>}/>
<Route path="/tech-stack" element={<TechStack/>}/>
<Route path="/auth" element={<AuthPage/>}/>
<Route path="/sign-up" element={<SignUpPage/>}/>
<Route path="/board" element={<Board/>}/>
<Route path="/boards/info/:id" element={<BoardInfo/>}/>
<Route path="/board/new" element={<NewBoard/>}/>
<Route path="/my-page" element={<MyPage/>}/>
</Routes>
</Container>
</Suspense>
</body>
</main>
<div className="wrap">
{/*<footer className="py-5 bg-dark mt-auto"><TechStack/></footer>*/}
{/*<footer className="mt-auto"><Footer/></footer>*/}
<Footer/>
</div>
</ThemeProvider>
</QueryClientProvider>
</>
);
}
export default App;