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,
|
onClick: this.handleOnOpenGroupCreateModal,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
const tabs = [
|
const tabs = !!me ? [
|
||||||
{
|
{
|
||||||
title: intl.formatMessage(messages.featured),
|
title: intl.formatMessage(messages.featured),
|
||||||
to: '/groups',
|
to: '/groups',
|
||||||
@ -76,7 +76,7 @@ class GroupsPage extends PureComponent {
|
|||||||
title: intl.formatMessage(messages.myGroups),
|
title: intl.formatMessage(messages.myGroups),
|
||||||
to: '/groups/browse/member',
|
to: '/groups/browse/member',
|
||||||
},
|
},
|
||||||
]
|
] : []
|
||||||
|
|
||||||
if (isPro) {
|
if (isPro) {
|
||||||
tabs.push({
|
tabs.push({
|
||||||
|
Loading…
Reference in New Issue
Block a user