Updated GroupsPage to not show tabs if no user
• Updated: - GroupsPage to not show tabs if no user
This commit is contained in:
parent
88d3b328f6
commit
62009f5769
|
@ -63,7 +63,7 @@ class GroupsPage extends PureComponent {
|
|||
onClick: this.handleOnOpenGroupCreateModal,
|
||||
},
|
||||
]
|
||||
const tabs = [
|
||||
const tabs = !!me ? [
|
||||
{
|
||||
title: intl.formatMessage(messages.featured),
|
||||
to: '/groups',
|
||||
|
@ -76,7 +76,7 @@ class GroupsPage extends PureComponent {
|
|||
title: intl.formatMessage(messages.myGroups),
|
||||
to: '/groups/browse/member',
|
||||
},
|
||||
]
|
||||
] : []
|
||||
|
||||
if (isPro) {
|
||||
tabs.push({
|
||||
|
|
Loading…
Reference in New Issue