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 (