Add React hooks eslint

This commit is contained in:
Gregory Schier
2023-04-01 15:26:57 -07:00
parent 604254257d
commit b23e56c3af
23 changed files with 151 additions and 98 deletions

View File

@@ -42,7 +42,7 @@ export default function Workspace() {
setFloating(false);
sidebar.show();
}
}, [windowSize.width]);
}, [sidebar, windowSize.width]);
const unsub = () => {
if (moveState.current !== null) {
@@ -73,7 +73,7 @@ export default function Workspace() {
document.documentElement.addEventListener('mouseup', moveState.current.up);
setIsResizing(true);
},
[sidebar.width, sidebar.hidden],
[sidebar],
);
const sideWidth = sidebar.hidden ? 0 : sidebar.width;