Updated FooterBar sidebar functionality
• Updated: - FooterBar sidebar functionality
This commit is contained in:
parent
7e673d4e7f
commit
fd7ec778fe
@ -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,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user