group sidebar panel ui
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user