You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

  1. import Drawer from '../ui/components/drawer';
  2. import ComposeFormContainer from '../ui/containers/compose_form_container';
  3. import FollowFormContainer from '../ui/containers/follow_form_container';
  4. import UploadFormContainer from '../ui/containers/upload_form_container';
  5. import NavigationContainer from '../ui/containers/navigation_container';
  6. import PureRenderMixin from 'react-addons-pure-render-mixin';
  7. import SuggestionsContainer from './containers/suggestions_container';
  8. import SearchContainer from './containers/search_container';
  9. import { fetchSuggestions } from '../../actions/suggestions';
  10. import { connect } from 'react-redux';
  11. const Compose = React.createClass({
  12. propTypes: {
  13. dispatch: React.PropTypes.func.isRequired
  14. },
  15. mixins: [PureRenderMixin],
  16. componentDidMount () {
  17. this.props.dispatch(fetchSuggestions());
  18. },
  19. render () {
  20. return (
  21. <Drawer>
  22. <div style={{ flex: '1 1 auto' }}>
  23. <SearchContainer />
  24. <NavigationContainer />
  25. <ComposeFormContainer />
  26. <UploadFormContainer />
  27. </div>
  28. <SuggestionsContainer />
  29. </Drawer>
  30. );
  31. }
  32. });
  33. export default connect()(Compose);