diff --git a/packages/gitbook/src/components/TableOfContents/PageGroupItem.tsx b/packages/gitbook/src/components/TableOfContents/PageGroupItem.tsx index 4acbbcd4e..27f0e28f9 100644 --- a/packages/gitbook/src/components/TableOfContents/PageGroupItem.tsx +++ b/packages/gitbook/src/components/TableOfContents/PageGroupItem.tsx @@ -14,7 +14,6 @@ export function PageGroupItem(props: { page: ClientTOCPageGroup; isFirst?: boole const descendants = page.descendants ?? []; const hasDescendants = descendants.length > 0; const [isOpen, setIsOpen] = React.useState(true); - const { sentinelRef, isSticking } = useIsSticking(); const handleToggle = () => { if (!hasDescendants) { @@ -26,28 +25,24 @@ export function PageGroupItem(props: { page: ClientTOCPageGroup; isFirst?: boole return (
  • -