Added pages and routes for Groups by tag and category

• Added:
- pages and routes for Groups by tag and category
This commit is contained in:
mgabdev
2020-09-14 17:12:45 -05:00
parent cb30e0dcbf
commit fafd1ef658
10 changed files with 355 additions and 5 deletions

View File

@@ -42,10 +42,10 @@ class GroupsCollection extends ImmutablePureComponent {
isFetched,
} = this.props
if (isLoading && groupIds.size === 0) {
return <ColumnIndicator type='loading' />
} else if (isFetched && groupIds.size === 0) {
if (!groupIds || (isFetched && groupIds.size === 0)) {
return <ColumnIndicator type='error' message={intl.formatMessage(messages.empty)} />
} else if (isLoading && groupIds.size === 0) {
return <ColumnIndicator type='loading' />
}
const isAddable = ['featured', 'new'].indexOf(activeTab) > -1