chinwagsocial/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx
Eugen Rochko f8f40f15da Move status components inside individual containers. We still need to select
all statuses/accounts to assemble, but at least lists don't have to be
re-rendered all the time now. Also add "mention" dropdown option
2016-10-24 18:08:23 +02:00

18 lines
510 B
JavaScript

import { connect } from 'react-redux';
import StatusList from '../../../components/status_list';
import { expandTimeline } from '../../../actions/timelines';
const mapStateToProps = (state, props) => ({
statusIds: state.getIn(['timelines', props.type])
});
const mapDispatchToProps = function (dispatch, props) {
return {
onScrollToBottom () {
dispatch(expandTimeline(props.type));
}
};
};
export default connect(mapStateToProps, mapDispatchToProps)(StatusList);