Skip to content

Commit

Permalink
Add object destructing to navbar-header
Browse files Browse the repository at this point in the history
  • Loading branch information
fhlavac committed Dec 4, 2019
1 parent a4bb27f commit f72ca0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/components/top-navbar/navbar-header.jsx
Expand Up @@ -8,7 +8,7 @@ const NavbarHeader = ({
imagePath,
}) => {
const dispatch = useDispatch();
const isVerticalMenuCollapsed = useSelector(store => store.menuReducer.isVerticalMenuCollapsed);
const isVerticalMenuCollapsed = useSelector(({ menuReducer: { isVerticalMenuCollapsed } }) => isVerticalMenuCollapsed);

return (
<div className="navbar-header">
Expand Down

0 comments on commit f72ca0b

Please sign in to comment.