From ba3d6a37cf6ca5a33e1d2107cc808590fc1098b4 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Wed, 23 Apr 2025 10:37:13 +0100 Subject: [PATCH] remove clickoutside hook for now --- .../features/share/components/share-shell.tsx | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/apps/client/src/features/share/components/share-shell.tsx b/apps/client/src/features/share/components/share-shell.tsx index 799958d2..2a0ad8c3 100644 --- a/apps/client/src/features/share/components/share-shell.tsx +++ b/apps/client/src/features/share/components/share-shell.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React from "react"; import { ActionIcon, Affix, @@ -30,7 +30,6 @@ import { import { IconList } from "@tabler/icons-react"; import { useToggleToc } from "@/features/share/hooks/use-toggle-toc.ts"; import classes from "./share.module.css"; -import { useClickOutside } from "@mantine/hooks"; const MemoizedSharedTree = React.memo(SharedTree); @@ -54,18 +53,6 @@ export default function ShareShell({ const { data } = useGetSharedPageTreeQuery(shareId); const readOnlyEditor = useAtomValue(readOnlyEditorAtom); - const [navbarOutside, setNavbarOutside] = useState(null); - - useClickOutside( - () => { - if (mobileOpened) { - toggleMobile(); - } - }, - null, - [navbarOutside], - ); - return ( {data?.pageTree?.length > 1 && ( - + )}