From 33c314d4e8679f4ced56754208ed51ca49dc3b79 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Thu, 24 Apr 2025 17:56:54 +0100 Subject: [PATCH] remove clickoutside hook --- .../src/components/layouts/global/global-app-shell.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/apps/client/src/components/layouts/global/global-app-shell.tsx b/apps/client/src/components/layouts/global/global-app-shell.tsx index c8aff4cc..58ff5609 100644 --- a/apps/client/src/components/layouts/global/global-app-shell.tsx +++ b/apps/client/src/components/layouts/global/global-app-shell.tsx @@ -14,7 +14,6 @@ import { AppHeader } from "@/components/layouts/global/app-header.tsx"; import Aside from "@/components/layouts/global/aside.tsx"; import classes from "./app-shell.module.css"; import { useTrialEndAction } from "@/ee/hooks/use-trial-end-action.tsx"; -import { useClickOutside, useMergedRef } from "@mantine/hooks"; import { useToggleSidebar } from "@/components/layouts/global/hooks/hooks/use-toggle-sidebar.ts"; export default function GlobalAppShell({ @@ -30,13 +29,6 @@ export default function GlobalAppShell({ const [sidebarWidth, setSidebarWidth] = useAtom(sidebarWidthAtom); const [isResizing, setIsResizing] = useState(false); const sidebarRef = useRef(null); - const navbarOutsideRef = useClickOutside(() => { - if (mobileOpened) { - toggleMobile(); - } - }); - - const mergedRef = useMergedRef(sidebarRef, navbarOutsideRef); const startResizing = React.useCallback((mouseDownEvent) => { mouseDownEvent.preventDefault(); @@ -112,7 +104,7 @@ export default function GlobalAppShell({
{isSpaceRoute && }