Updated FooterBar sidebar functionality

• Updated:
- FooterBar sidebar functionality
This commit is contained in:
mgabdev 2020-10-31 18:20:21 -05:00
parent 7e673d4e7f
commit fd7ec778fe

View File

@ -16,12 +16,15 @@ class FooterBar extends ImmutablePureComponent {
router: PropTypes.object, router: PropTypes.object,
} }
handleOnOpenSidebar = () => {
this.props.onOpenSidebar()
}
render() { render() {
const { const {
account, account,
notificationCount, notificationCount,
homeItemsQueueCount, homeItemsQueueCount,
onOpenSidebar,
} = this.props } = this.props
const noRouter = !this.context.router const noRouter = !this.context.router
@ -65,7 +68,7 @@ class FooterBar extends ImmutablePureComponent {
title: 'Menu', title: 'Menu',
isHidden: !me, isHidden: !me,
active: !!account ? currentPathname === `/${account.get('username')}` : false, active: !!account ? currentPathname === `/${account.get('username')}` : false,
onClick: onOpenSidebar, onClick: this.handleOnOpenSidebar,
}, },
] ]