WIP ESLint fixes
This commit is contained in:
@@ -62,7 +62,7 @@ export default function DashboardSidebar({
|
||||
if (!isOverSmViewport) {
|
||||
setExpanded(false);
|
||||
}
|
||||
}, [expanded, setExpanded, isOverSmViewport]);
|
||||
}, [setExpanded, isOverSmViewport]);
|
||||
|
||||
const hasDrawerTransitions = isOverSmViewport && isOverMdViewport;
|
||||
|
||||
@@ -159,7 +159,7 @@ export default function DashboardSidebar({
|
||||
},
|
||||
};
|
||||
},
|
||||
[expanded, !expanded]
|
||||
[expanded]
|
||||
);
|
||||
|
||||
const sidebarContextValue = React.useMemo(() => {
|
||||
@@ -168,7 +168,7 @@ export default function DashboardSidebar({
|
||||
fullyExpanded: isFullyExpanded,
|
||||
hasDrawerTransitions,
|
||||
};
|
||||
}, [handlePageItemClick, !expanded, isFullyExpanded, hasDrawerTransitions]);
|
||||
}, [handlePageItemClick, isFullyExpanded, hasDrawerTransitions]);
|
||||
|
||||
return (
|
||||
<DashboardSidebarContext.Provider value={sidebarContextValue}>
|
||||
|
||||
Reference in New Issue
Block a user