Updated FooterBar with current routes

• Updated:
- FooterBar with current routes
This commit is contained in:
mgabdev 2020-08-06 00:14:42 -05:00
parent f379b973ab
commit b5fc61d2df

View File

@ -33,10 +33,10 @@ class FooterBar extends PureComponent {
const buttons = [
{
to: '/home',
to: !me ? '/' : '/home',
icon: 'home',
title: 'Home',
active: currentPathname === '/home',
active: !me ? currentPathname === '/' : currentPathname === '/home',
},
{
to: '/notifications',
@ -53,10 +53,17 @@ class FooterBar extends PureComponent {
},
{
to: '/explore',
icon: 'trends',
title: 'Trends',
icon: 'explore',
title: 'Explore',
isHidden: !me,
active: currentPathname === '/explore',
},
{
to: '/news',
icon: 'news',
title: 'News',
active: currentPathname === '/news',
},
]
return (