pronounscc/frontend/src/App.tsx

31 lines
916 B
TypeScript
Raw Normal View History

import { Routes, Route } from "react-router-dom";
2022-05-05 16:33:44 +02:00
import "./App.css";
2022-05-10 16:33:29 +02:00
import Container from "./lib/Container";
import Navigation from "./lib/Navigation";
2022-05-14 16:46:03 +02:00
import EditMe from "./pages/EditMe";
2022-05-10 16:33:29 +02:00
import Home from "./pages/Home";
2022-05-12 16:41:32 +02:00
import Discord from "./pages/login/Discord";
import Login from "./pages/login/Login";
2022-05-10 16:33:29 +02:00
import User from "./pages/User";
function App() {
return (
2022-05-10 16:33:29 +02:00
<>
<Navigation />
<Container>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/u/:username" element={<User />} />
<Route path="/u/:username/:member" element={<User />} />
2022-05-14 16:46:03 +02:00
<Route path="/edit" element={<EditMe />} />
2022-05-26 16:11:22 +02:00
<Route path="/edit/:member" element={<EditMe />} />
2022-05-12 16:41:32 +02:00
<Route path="/login" element={<Login />} />
<Route path="/login/discord" element={<Discord />} />
2022-05-10 16:33:29 +02:00
</Routes>
</Container>
</>
2022-05-05 16:33:44 +02:00
);
}
2022-05-05 16:33:44 +02:00
export default App;