From 912537f5761510c8396f4a11d87e403c39edeb41 Mon Sep 17 00:00:00 2001 From: aronmal Date: Wed, 25 Oct 2023 18:15:05 +0200 Subject: [PATCH] Fix in navbar --- src/components/de/Navbar.tsx | 12 +++++++++--- src/components/en/Navbar.tsx | 12 +++++++++--- src/routes/de/overview.tsx | 2 +- src/routes/en/overview.tsx | 2 +- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/components/de/Navbar.tsx b/src/components/de/Navbar.tsx index 756efac..0b9be9d 100644 --- a/src/components/de/Navbar.tsx +++ b/src/components/de/Navbar.tsx @@ -5,7 +5,7 @@ import { faXmark, } from "@fortawesome/pro-regular-svg-icons"; import { createSignal } from "solid-js"; -import { A, useNavigate } from "solid-start"; +import { A, useLocation, useNavigate } from "solid-start"; import { FontAwesomeIcon } from "../FontAwesomeIcon"; export const [lightMode, setLightMode] = createSignal(false); @@ -13,6 +13,7 @@ const [menu, setMenu] = createSignal(false); function Navbar() { const navigate = useNavigate(); + const location = useLocation(); return ( <> diff --git a/src/components/en/Navbar.tsx b/src/components/en/Navbar.tsx index c5f6b4c..d74ddad 100644 --- a/src/components/en/Navbar.tsx +++ b/src/components/en/Navbar.tsx @@ -5,7 +5,7 @@ import { faXmark, } from "@fortawesome/pro-regular-svg-icons"; import { createSignal } from "solid-js"; -import { A, useNavigate } from "solid-start"; +import { A, useLocation, useNavigate } from "solid-start"; import { FontAwesomeIcon } from "../FontAwesomeIcon"; export const [lightMode, setLightMode] = createSignal(false); @@ -13,6 +13,7 @@ const [menu, setMenu] = createSignal(false); function Navbar() { const navigate = useNavigate(); + const location = useLocation(); return ( <> diff --git a/src/routes/de/overview.tsx b/src/routes/de/overview.tsx index 8b954d3..41316dd 100644 --- a/src/routes/de/overview.tsx +++ b/src/routes/de/overview.tsx @@ -10,7 +10,7 @@ function overview() { -
+
diff --git a/src/routes/en/overview.tsx b/src/routes/en/overview.tsx index cfdf72e..a3372c6 100644 --- a/src/routes/en/overview.tsx +++ b/src/routes/en/overview.tsx @@ -9,7 +9,7 @@ function Overview() { Introduction EUCs -
+
{/*