forked from mstdn/mastodon
f8f40f15da
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
18 lines
510 B
JavaScript
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);
|