revert: resize in app sidebar (#2193)

This commit is contained in:
Himself65
2023-04-28 05:41:17 -05:00
committed by GitHub
parent f9b012cac9
commit 73a7c01580
3 changed files with 6 additions and 26 deletions

View File

@@ -75,7 +75,7 @@ export const RootAppSidebar = ({
}, [createPage, openPage]);
const sidebarOpen = useAtomValue(appSidebarOpenAtom);
useEffect(() => {
if (environment.isDesktop && typeof sidebarOpen === 'boolean') {
if (environment.isDesktop) {
window.apis?.onSidebarVisibilityChange(sidebarOpen);
}
}, [sidebarOpen]);