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.

18 lines
549 B

7 years ago
7 years ago
7 years ago
  1. import { connect } from 'react-redux';
  2. import StatusList from '../../../components/status_list';
  3. import { expandTimeline } from '../../../actions/timelines';
  4. import Immutable from 'immutable';
  5. const mapStateToProps = (state, props) => ({
  6. statusIds: state.getIn(['timelines', props.type], Immutable.List())
  7. });
  8. const mapDispatchToProps = function (dispatch, props) {
  9. return {
  10. onScrollToBottom () {
  11. dispatch(expandTimeline(props.type, props.id));
  12. }
  13. };
  14. };
  15. export default connect(mapStateToProps, mapDispatchToProps)(StatusList);