Updated FooterBar with current routes
• Updated: - FooterBar with current routes
This commit is contained in:
parent
f379b973ab
commit
b5fc61d2df
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user