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

@@ -70,6 +70,8 @@ import {
GroupRemovedAccounts,
GroupTimeline,
GroupsCategories,
GroupCategory,
GroupTag,
HashtagTimeline,
HomeTimeline,
Investors,
@@ -197,6 +199,8 @@ class SwitchingArea extends React.PureComponent {
<WrappedRoute path='/groups/browse/member' exact page={GroupsPage} component={GroupsCollection} content={children} componentParams={{ activeTab: 'member' }} />
<WrappedRoute path='/groups/browse/admin' exact page={GroupsPage} component={GroupsCollection} content={children} componentParams={{ activeTab: 'admin' }} />
<WrappedRoute path='/groups/browse/categories' exact page={GroupsPage} component={GroupsCategories} content={children} componentParams={{ activeTab: 'categories' }} />
<WrappedRoute path='/groups/browse/categories/:sluggedCategory' exact page={GroupsPage} component={GroupCategory} content={children} componentParams={{ activeTab: 'categories' }} />
<WrappedRoute path='/groups/browse/tags/:sluggedTag' exact page={GroupsPage} component={GroupTag} content={children} />
<WrappedRoute path='/groups/create' page={ModalPage} component={GroupCreate} content={children} componentParams={{ title: 'Create Group', page: 'create-group' }} />
<WrappedRoute path='/groups/:id/members' page={GroupPage} component={GroupMembers} content={children} />