const mapStateToProps = state => ({
accountIds: state.getIn(['user_lists', 'blocks', 'items']),
+ hasMore: !!state.getIn(['user_lists', 'blocks', 'next']),
});
export default @connect(mapStateToProps)
dispatch: PropTypes.func.isRequired,
shouldUpdateScroll: PropTypes.func,
accountIds: ImmutablePropTypes.list,
+ hasMore: PropTypes.bool,
intl: PropTypes.object.isRequired,
};
}, 300, { leading: true });
render () {
- const { intl, accountIds, shouldUpdateScroll } = this.props;
+ const { intl, accountIds, shouldUpdateScroll, hasMore } = this.props;
if (!accountIds) {
return (
<ScrollableList
scrollKey='blocks'
onLoadMore={this.handleLoadMore}
+ hasMore={hasMore}
shouldUpdateScroll={shouldUpdateScroll}
emptyMessage={emptyMessage}
>
const mapStateToProps = state => ({
domains: state.getIn(['domain_lists', 'blocks', 'items']),
+ hasMore: !!state.getIn(['domain_lists', 'blocks', 'next']),
});
export default @connect(mapStateToProps)
params: PropTypes.object.isRequired,
dispatch: PropTypes.func.isRequired,
shouldUpdateScroll: PropTypes.func,
+ hasMore: PropTypes.bool,
domains: ImmutablePropTypes.orderedSet,
intl: PropTypes.object.isRequired,
};
}, 300, { leading: true });
render () {
- const { intl, domains, shouldUpdateScroll } = this.props;
+ const { intl, domains, shouldUpdateScroll, hasMore } = this.props;
if (!domains) {
return (
<ScrollableList
scrollKey='domain_blocks'
onLoadMore={this.handleLoadMore}
+ hasMore={hasMore}
shouldUpdateScroll={shouldUpdateScroll}
emptyMessage={emptyMessage}
>
const mapStateToProps = state => ({
accountIds: state.getIn(['user_lists', 'follow_requests', 'items']),
+ hasMore: !!state.getIn(['user_lists', 'follow_requests', 'next']),
});
export default @connect(mapStateToProps)
params: PropTypes.object.isRequired,
dispatch: PropTypes.func.isRequired,
shouldUpdateScroll: PropTypes.func,
+ hasMore: PropTypes.bool,
accountIds: ImmutablePropTypes.list,
intl: PropTypes.object.isRequired,
};
}, 300, { leading: true });
render () {
- const { intl, shouldUpdateScroll, accountIds } = this.props;
+ const { intl, shouldUpdateScroll, accountIds, hasMore } = this.props;
if (!accountIds) {
return (
<ScrollableList
scrollKey='follow_requests'
onLoadMore={this.handleLoadMore}
+ hasMore={hasMore}
shouldUpdateScroll={shouldUpdateScroll}
emptyMessage={emptyMessage}
>
const mapStateToProps = state => ({
accountIds: state.getIn(['user_lists', 'mutes', 'items']),
+ hasMore: !!state.getIn(['user_lists', 'mutes', 'next']),
});
export default @connect(mapStateToProps)
params: PropTypes.object.isRequired,
dispatch: PropTypes.func.isRequired,
shouldUpdateScroll: PropTypes.func,
+ hasMore: PropTypes.bool,
accountIds: ImmutablePropTypes.list,
intl: PropTypes.object.isRequired,
};
}, 300, { leading: true });
render () {
- const { intl, shouldUpdateScroll, accountIds } = this.props;
+ const { intl, shouldUpdateScroll, hasMore, accountIds } = this.props;
if (!accountIds) {
return (
<ScrollableList
scrollKey='mutes'
onLoadMore={this.handleLoadMore}
+ hasMore={hasMore}
shouldUpdateScroll={shouldUpdateScroll}
emptyMessage={emptyMessage}
>