diff --git a/client/src/Layout.tsx b/client/src/Layout.tsx index b49a0e67..82bb0067 100644 --- a/client/src/Layout.tsx +++ b/client/src/Layout.tsx @@ -1,5 +1,5 @@ import { useEffect } from "react"; -import { Outlet, ScrollRestoration, useLocation } from "react-router-dom"; +import { Outlet, ScrollRestoration } from "react-router-dom"; import { AppShell, Burger, @@ -28,11 +28,6 @@ function Layout() { const theme = useMantineTheme(); const { colorScheme } = useMantineColorScheme(); - const location = useLocation(); - useEffect(() => { - close(); - }, [location]); - const { data, isLoading, error, isError } = useSettings(); useEffect(() => {