diff options
Diffstat (limited to 'frontend/src/App.tsx')
| -rw-r--r-- | frontend/src/App.tsx | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 81589f6..754f5a2 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx | |||
| @@ -1,24 +1,24 @@ | |||
| 1 | import React from "react"; | 1 | import React from 'react'; |
| 2 | import { Routes, Route } from "react-router-dom"; | 2 | import { Routes, Route } from 'react-router-dom'; |
| 3 | import { Helmet } from "react-helmet"; | 3 | import { Helmet } from 'react-helmet'; |
| 4 | 4 | ||
| 5 | import { UserProfile } from "@customTypes/Profile"; | 5 | import { UserProfile } from '@customTypes/Profile'; |
| 6 | import Sidebar from "./components/Sidebar"; | 6 | import Sidebar from './components/Sidebar'; |
| 7 | import "./App.css"; | 7 | import './App.css'; |
| 8 | 8 | ||
| 9 | import Profile from "@pages/Profile"; | 9 | import Profile from '@pages/Profile'; |
| 10 | import Games from "@pages/Games"; | 10 | import Games from '@pages/Games'; |
| 11 | import Maps from "@pages/Maps"; | 11 | import Maps from '@pages/Maps'; |
| 12 | import User from "@pages/User"; | 12 | import User from '@pages/User'; |
| 13 | import Homepage from "@pages/Homepage"; | 13 | import Homepage from '@pages/Homepage'; |
| 14 | import UploadRunDialog from "./components/UploadRunDialog"; | 14 | import UploadRunDialog from './components/UploadRunDialog'; |
| 15 | import Rules from "@pages/Rules"; | 15 | import Rules from '@pages/Rules'; |
| 16 | import About from "@pages/About"; | 16 | import About from '@pages/About'; |
| 17 | import { Game } from "@customTypes/Game"; | 17 | import { Game } from '@customTypes/Game'; |
| 18 | import { API } from "./api/Api"; | 18 | import { API } from './api/Api'; |
| 19 | import Maplist from "@pages/Maplist"; | 19 | import Maplist from '@pages/Maplist'; |
| 20 | import Rankings from "@pages/Rankings"; | 20 | import Rankings from '@pages/Rankings'; |
| 21 | import { get_user_id_from_token, get_user_mod_from_token } from "./utils/Jwt"; | 21 | import { get_user_id_from_token, get_user_mod_from_token } from './utils/Jwt'; |
| 22 | 22 | ||
| 23 | const App: React.FC = () => { | 23 | const App: React.FC = () => { |
| 24 | const [token, setToken] = React.useState<string | undefined>(undefined); | 24 | const [token, setToken] = React.useState<string | undefined>(undefined); |
| @@ -78,7 +78,7 @@ const App: React.FC = () => { | |||
| 78 | <UploadRunDialog | 78 | <UploadRunDialog |
| 79 | token={token} | 79 | token={token} |
| 80 | open={uploadRunDialog} | 80 | open={uploadRunDialog} |
| 81 | onClose={(updateProfile) => { | 81 | onClose={updateProfile => { |
| 82 | setUploadRunDialog(false); | 82 | setUploadRunDialog(false); |
| 83 | if (updateProfile) { | 83 | if (updateProfile) { |
| 84 | _set_profile(get_user_id_from_token(token)); | 84 | _set_profile(get_user_id_from_token(token)); |
| @@ -118,7 +118,7 @@ const App: React.FC = () => { | |||
| 118 | <Route path="/rules" element={<Rules />} /> | 118 | <Route path="/rules" element={<Rules />} /> |
| 119 | <Route path="/about" element={<About />} /> | 119 | <Route path="/about" element={<About />} /> |
| 120 | <Route path="/rankings" element={<Rankings />}></Route> | 120 | <Route path="/rankings" element={<Rankings />}></Route> |
| 121 | <Route path="*" element={"404"} /> | 121 | <Route path="*" element={'404'} /> |
| 122 | </Routes> | 122 | </Routes> |
| 123 | </> | 123 | </> |
| 124 | ); | 124 | ); |