Display follow suggestions
This commit is contained in:
parent
e21a3fe0cd
commit
20f581f796
8 changed files with 146 additions and 6 deletions
|
@ -4,11 +4,22 @@ import FollowFormContainer from '../ui/containers/follow_form_container';
|
|||
import UploadFormContainer from '../ui/containers/upload_form_container';
|
||||
import NavigationContainer from '../ui/containers/navigation_container';
|
||||
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
||||
import SuggestionsContainer from './containers/suggestions_container';
|
||||
import { fetchSuggestions } from '../../actions/suggestions';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
const Compose = React.createClass({
|
||||
|
||||
propTypes: {
|
||||
dispatch: React.PropTypes.func.isRequired
|
||||
},
|
||||
|
||||
mixins: [PureRenderMixin],
|
||||
|
||||
componentDidMount () {
|
||||
this.props.dispatch(fetchSuggestions());
|
||||
},
|
||||
|
||||
render () {
|
||||
return (
|
||||
<Drawer>
|
||||
|
@ -18,6 +29,7 @@ const Compose = React.createClass({
|
|||
<UploadFormContainer />
|
||||
</div>
|
||||
|
||||
<SuggestionsContainer />
|
||||
<FollowFormContainer />
|
||||
</Drawer>
|
||||
);
|
||||
|
@ -25,4 +37,4 @@ const Compose = React.createClass({
|
|||
|
||||
});
|
||||
|
||||
export default Compose;
|
||||
export default connect()(Compose);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue