aboutsummaryrefslogtreecommitdiff
path: root/src/web/components/app/App.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/components/app/App.jsx')
-rw-r--r--src/web/components/app/App.jsx29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/web/components/app/App.jsx b/src/web/components/app/App.jsx
new file mode 100644
index 0000000..ffd2cc7
--- /dev/null
+++ b/src/web/components/app/App.jsx
@@ -0,0 +1,29 @@
+import React from "react";
+import {Route, Routes} from "react-router-dom";
+
+import NavBar from "components/nav_bar/NavBar.jsx";
+import Forum from "components/forum/Forum.jsx";
+import NotFound from "components/not_found/NotFound.jsx";
+import Settings from "components/settings/Settings.jsx";
+import {UserContextProvider} from "contexts/UserContext.jsx";
+import {StateContextProvider} from "contexts/StateContext.jsx";
+
+import styles from "./App.css";
+
+export default function App() {
+ return (
+ <UserContextProvider>
+ <StateContextProvider>
+ <NavBar />
+ <main className={styles.content}>
+ <Routes>
+ <Route path="/*" element={<Forum />} />
+ <Route path="/settings/*" element={<Settings />} />
+
+ <Route path="*" element={<NotFound />} />
+ </Routes>
+ </main>
+ </StateContextProvider>
+ </UserContextProvider>
+ );
+}