fix: formatting issues

This commit is contained in:
Moyasee
2025-09-26 17:00:50 +03:00
parent f027f05e02
commit b6be03cea3
3 changed files with 32 additions and 39 deletions

View File

@@ -11,15 +11,12 @@ export function useSectionCollapse() {
library: false,
});
const toggleSection = useCallback(
(section: keyof SectionCollapseState) => {
setCollapseState(prevState => ({
...prevState,
[section]: !prevState[section],
}));
},
[]
);
const toggleSection = useCallback((section: keyof SectionCollapseState) => {
setCollapseState((prevState) => ({
...prevState,
[section]: !prevState[section],
}));
}, []);
return {
collapseState,
@@ -27,4 +24,4 @@ export function useSectionCollapse() {
isPinnedCollapsed: collapseState.pinned,
isLibraryCollapsed: collapseState.library,
};
}
}