Skip to content

Commit acffeac

Browse files
committed
fix TOC
1 parent 00d92a3 commit acffeac

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

apps/client/src/features/share/components/share-shell.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,15 @@ export default function ShareShell({
5555
const readOnlyEditor = useAtomValue(readOnlyEditorAtom);
5656

5757
const [navbarOutside, setNavbarOutside] = useState<HTMLElement | null>(null);
58-
const [asideOutside, setAsideOutside] = useState<HTMLElement | null>(null);
5958

6059
useClickOutside(
6160
() => {
6261
if (mobileOpened) {
6362
toggleMobile();
6463
}
65-
if (mobileTocOpened) {
66-
toggleTocMobile();
67-
}
6864
},
6965
null,
70-
[navbarOutside, asideOutside],
66+
[navbarOutside],
7167
);
7268

7369
return (
@@ -181,7 +177,6 @@ export default function ShareShell({
181177
p="md"
182178
withBorder={mobileTocOpened}
183179
className={classes.aside}
184-
ref={setAsideOutside}
185180
>
186181
<ScrollArea style={{ height: "80vh" }} scrollbarSize={5} type="scroll">
187182
<div style={{ paddingBottom: "50px" }}>

0 commit comments

Comments
 (0)