File tree Expand file tree Collapse file tree
apps/client/src/features/share/components Expand file tree Collapse file tree Original file line number Diff line number Diff 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" } } >
You can’t perform that action at this time.
0 commit comments