]> git.localhorst.tv Git - alttp.git/commitdiff
season 2
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 9 Apr 2022 19:06:34 +0000 (21:06 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 9 Apr 2022 19:06:34 +0000 (21:06 +0200)
resources/js/components/App.js
resources/js/components/common/Header.js

index d914d21b0e4a6e9abf573e06d430d263ee5a5f2d..817147fb6f69e9c5ff845050c1b813d7a01448fa 100644 (file)
@@ -53,7 +53,7 @@ const App = () => {
                        <Routes>
                                <Route path="tournaments/:id" element={<Tournament />} />
                                <Route path="users/:id" element={<User />} />
-                               <Route path="*" element={<Navigate to="/tournaments/1" />} />
+                               <Route path="*" element={<Navigate to="/tournaments/4" />} />
                        </Routes>
                </UserContext.Provider>
        </BrowserRouter>;
index b1040f80bc5b187ea1fd538ff2f14558c511ce18..72eb0399567f815f30fad92bc5d5930d0cdf399f 100644 (file)
@@ -18,6 +18,18 @@ const Header = ({ doLogout, user }) =>
                                        ALttP
                                </Navbar.Brand>
                        </LinkContainer>
+                       <Nav>
+                               <LinkContainer to="/tournaments/1">
+                                       <Nav.Link href="/tournaments/1">
+                                               Season 1
+                                       </Nav.Link>
+                               </LinkContainer>
+                               <LinkContainer to="/tournaments/4">
+                                       <Nav.Link href="/tournaments/4">
+                                               Season 2
+                                       </Nav.Link>
+                               </LinkContainer>
+                       </Nav>
                        <Navbar.Text className="ms-auto me-2">
                                <LanguageSwitcher />
                        </Navbar.Text>