mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-23 10:51:02 +00:00
fix: formatting issues
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user