From d115a1331b544db5b1df28d627c7cbe3537db581 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 29 Oct 2024 10:43:22 +0100 Subject: [PATCH] fixable errors --- src/Components/AppShell/NavBar.tsx | 4 ++-- src/Components/AppShell/SideBar.tsx | 6 +++--- src/Components/Auth/useAuth.tsx | 18 +++++++++--------- src/Components/Input/TextAreaInput.tsx | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Components/AppShell/NavBar.tsx b/src/Components/AppShell/NavBar.tsx index 055d9099..6b9b0e0d 100644 --- a/src/Components/AppShell/NavBar.tsx +++ b/src/Components/AppShell/NavBar.tsx @@ -39,8 +39,8 @@ export default function NavBar({ appName, userType}: { appName: string, userType useEffect(() => { - let params = new URLSearchParams(location.search); - let embedded = params.get("embedded"); + const params = new URLSearchParams(location.search); + const embedded = params.get("embedded"); embedded!="true" && setShowNav(true) }, [location]); diff --git a/src/Components/AppShell/SideBar.tsx b/src/Components/AppShell/SideBar.tsx index de9f2c64..8a199c44 100644 --- a/src/Components/AppShell/SideBar.tsx +++ b/src/Components/AppShell/SideBar.tsx @@ -53,12 +53,12 @@ export function SideBar({ routes, bottomRoutes }: { routes: route[], bottomRoute useEffect(() => { - let params = new URLSearchParams(location.search); - let embedded = params.get("embedded"); + const params = new URLSearchParams(location.search); + const embedded = params.get("embedded"); embedded != "true" && setEmbedded(false) }, [location]); - let params = new URLSearchParams(window.location.search); + const params = new URLSearchParams(window.location.search); return (