diff --git a/src/Components/AppShell/SideBar.tsx b/src/Components/AppShell/SideBar.tsx index 5e1cd7a1..d4e70900 100644 --- a/src/Components/AppShell/SideBar.tsx +++ b/src/Components/AppShell/SideBar.tsx @@ -49,10 +49,21 @@ export function SideBar({ routes, bottomRoutes }: { routes: route[], bottomRoute } }, []) + const searchInput = useRef(null); + const [embedded, setEmbedded] = useState(true) + + + useEffect(() => { + let params = new URLSearchParams(location.search); + let embedded = params.get("embedded"); + embedded != "true" && setEmbedded(false) + + }, [location]); + return (