mirror of
https://github.com/muerwre/markdown-home-tab.git
synced 2025-04-25 08:56:41 +07:00
added theme detection
This commit is contained in:
parent
378687df52
commit
70f6dcd495
11 changed files with 133 additions and 19 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue