2016-08-31 20:58:10 +00:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import StatusList from '../components/status_list';
|
|
|
|
import { replyCompose } from '../actions/compose';
|
2016-08-24 15:56:44 +00:00
|
|
|
|
|
|
|
const mapStateToProps = function (state, props) {
|
|
|
|
return {
|
2016-08-31 14:15:12 +00:00
|
|
|
statuses: state.getIn(['timelines', props.type])
|
2016-08-24 15:56:44 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-08-31 20:58:10 +00:00
|
|
|
const mapDispatchToProps = function (dispatch) {
|
|
|
|
return {
|
|
|
|
onReply: function (status) {
|
|
|
|
dispatch(replyCompose(status));
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(StatusList);
|