Skip to content

Commit

Permalink
fix(suite): Fix sidebar mouseup bug (#16000)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvaclavik authored Dec 17, 2024
1 parent e79fee1 commit f1f29c7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Content = styled.div`
export const Sidebar = () => {
const [closedNotificationDevice, setClosedNotificationDevice] = useState(false);
const [closedNotificationSuite, setClosedNotificationSuite] = useState(false);
const { isSidebarCollapsed } = useResponsiveContext();
const { isSidebarCollapsed, setSidebarWidth, sidebarWidth } = useResponsiveContext();

const { elevation } = useElevation();
const { updateStatusDevice, updateStatusSuite } = useUpdateStatus();
Expand All @@ -48,9 +48,8 @@ export const Sidebar = () => {
setSidebarWidth: (width: number) => setSidebarWidthInRedux({ width }),
});

const { setSidebarWidth, sidebarWidth } = useResponsiveContext();

const handleSidebarWidthChanged = (width: number) => {
setSidebarWidth(width);
actions.setSidebarWidth(width);
};
const handleSidebarWidthUpdate = (width: number) => {
Expand Down

0 comments on commit f1f29c7

Please sign in to comment.