Fix sidebar on mobile (#703)
This commit is contained in:
parent
a1a7ca321f
commit
031a3a2f0a
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ function Page(props: Props) {
|
||||||
if (isOnFilePage || isMediumScreen) setSidebarOpen(false);
|
if (isOnFilePage || isMediumScreen) setSidebarOpen(false);
|
||||||
|
|
||||||
// TODO: make sure setState callback for usePersistedState uses useCallback to it doesn't cause effect to re-run
|
// TODO: make sure setState callback for usePersistedState uses useCallback to it doesn't cause effect to re-run
|
||||||
}, [isOnFilePage, isMediumScreen, setSidebarOpen]);
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [isOnFilePage, isMediumScreen]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in a new issue