added theme detection

This commit is contained in:
Fedor Katurov 2023-04-26 22:26:04 +06:00
parent 378687df52
commit 70f6dcd495
11 changed files with 133 additions and 19 deletions

View file

@ -51,13 +51,8 @@ export const useGridLayoutPersistance = () => {
persistLayout();
});
const onPanelChange = api.current.onDidActivePanelChange((event) => {
console.log(event);
});
return () => {
onLayoutChange.dispose();
onPanelChange.dispose();
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [persistLayout, api.current]);