group sidebar panel ui

This commit is contained in:
2458773093
2019-07-20 02:36:55 +03:00
parent c5c2585239
commit 61134fb645
6 changed files with 126 additions and 1 deletions

View File

@@ -8,7 +8,8 @@ import LinkFooter from '../features/ui/components/link_footer';
import PromoPanel from '../features/ui/components/promo_panel';
import HeaderContainer from '../features/groups/timeline/containers/header_container';
import GroupPanel from '../features/groups/timeline/components/panel';
import { fetchGroup } from '../actions/groups';
import { fetchGroup, fetchGroups } from '../actions/groups';
import GroupSidebarPanel from '../features/groups/sidebar_panel';
const mapStateToProps = (state, { params: { id } }) => ({
group: state.getIn(['groups', id]),
@@ -27,6 +28,7 @@ class GroupPage extends ImmutablePureComponent {
componentWillMount() {
const { params: { id }, dispatch } = this.props;
dispatch(fetchGroups('member'));
dispatch(fetchGroup(id));
}
@@ -60,6 +62,7 @@ class GroupPage extends ImmutablePureComponent {
<div className='columns-area__panels__pane columns-area__panels__pane--right'>
<div className='columns-area__panels__pane__inner'>
<GroupSidebarPanel />
<WhoToFollowPanel />
</div>
</div>