diff --git a/src/videoag/site/DefaultLayout.tsx b/src/videoag/site/DefaultLayout.tsx index 6546a935becab144ff2091a61a4743d0b1b0a85e..55a2358ab02686403892b6f46fc53cba7c20423f 100644 --- a/src/videoag/site/DefaultLayout.tsx +++ b/src/videoag/site/DefaultLayout.tsx @@ -1,6 +1,6 @@ import Link from "next/link"; import type React from "react"; -import { MouseEvent, useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import { useRouter } from "next/router"; import { DropdownButton } from "react-bootstrap"; import Collapse from "react-bootstrap/Collapse"; @@ -147,16 +147,6 @@ function NavBar({ status }: { status?: GetStatusResponse }) { const toggleNavbar = () => { setNavbarOpen((o) => !o); }; - - const switchToOldSite = (event: MouseEvent) => { - if (window.location.pathname.indexOf(basePath) !== -1) { - event.preventDefault(); - let newPath = window.location.pathname; - if (!newPath.startsWith("/")) newPath = "/" + newPath; - window.location.href = "https://video.fsmpi.rwth-aachen.de" + newPath; - } - }; - const isHome = useRouter().pathname === "/"; return ( @@ -197,19 +187,6 @@ function NavBar({ status }: { status?: GetStatusResponse }) { url="/feedback" className="flex-grow-1 text-center" /> - <a - className={ - "nav-link p-2 rounded flex-grow-1 text-center d-flex align-items-center justify-content-center" - } - href={"/"} - onClick={switchToOldSite} - style={{ color: "#c66" }} - > - <span - aria-hidden="true" - className={"me-1 bi bi-arrow-down-left-square"} - ></span> - </a> </div> <button @@ -280,18 +257,6 @@ function NavBar({ status }: { status?: GetStatusResponse }) { Feedback </NavBarIcon> </li> - <a - className={"nav-link p-2 rounded mx-1"} - href={"https://video.fsmpi.rwth-aachen.de"} - onClick={switchToOldSite} - style={{ color: "#c66" }} - > - <span - aria-hidden="true" - className={"me-1 bi bi-arrow-down-left-square"} - ></span> - Zur alten Seite - </a> </ul> <div className="flex-fill d-none d-lg-block" />