about summary refs log tree commit diff
path: root/app/assets/javascripts/components/containers/status_list_container.jsx
blob: 9cdd7f4c214e3a00002f65deb2a44622522b5471 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { connect }      from 'react-redux';
import StatusList       from '../components/status_list';
import { replyCompose } from '../actions/compose';

const mapStateToProps = function (state, props) {
  return {
    statuses: state.getIn(['timelines', props.type])
  };
};

const mapDispatchToProps = function (dispatch) {
  return {
    onReply: function (status) {
      dispatch(replyCompose(status));
    }
  };
};

export default connect(mapStateToProps, mapDispatchToProps)(StatusList);