This repository was archived by the owner on Nov 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathApp.js
More file actions
52 lines (50 loc) · 1.47 KB
/
App.js
File metadata and controls
52 lines (50 loc) · 1.47 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
import { Route, Routes } from "react-router-dom";
import {
Home,
About,
Projects,
GetStartedBadging,
SelectProjectRepo,
ErrorPage,
SuccessfullyBadged,
} from "./pages";
import {
WhatIsDeiBadging,
ApplicationProcess,
DeiBadge,
DeiFile,
} from "./components";
import { DataProvider } from "./contexts/DataContext";
import { DesktopProvider } from "./contexts/DesktopContext";
const App = () => {
return (
<>
<DesktopProvider>
<DataProvider>
<Routes>
<Route exact path="/" element={<Home />} />
<Route path="/about" element={<About />}>
<Route path="/about" element={<WhatIsDeiBadging />} />
<Route
path="/about/application-process"
element={<ApplicationProcess />}
/>
<Route path="/about/dei-file" element={<DeiFile />} />
<Route path="/about/dei-badge" element={<DeiBadge />} />
</Route>
<Route path="/badge" element={<GetStartedBadging />} />
<Route path="/select-project" element={<SelectProjectRepo />} />
<Route exact path="/projects" element={<Projects />} />
<Route
exact
path="/project-badging-successful"
element={<SuccessfullyBadged />}
/>
<Route path="*" element={<ErrorPage />} />
</Routes>
</DataProvider>
</DesktopProvider>
</>
);
};
export default App;