@@ -18,6 +18,7 @@ const messages = defineMessages({
1818
1919const mapStateToProps = state => ( {
2020 accountIds : state . getIn ( [ 'user_lists' , 'follow_requests' , 'items' ] ) ,
21+ hasMore : ! ! state . getIn ( [ 'user_lists' , 'follow_requests' , 'next' ] ) ,
2122} ) ;
2223
2324export default @connect ( mapStateToProps )
@@ -28,6 +29,7 @@ class FollowRequests extends ImmutablePureComponent {
2829 params : PropTypes . object . isRequired ,
2930 dispatch : PropTypes . func . isRequired ,
3031 shouldUpdateScroll : PropTypes . func ,
32+ hasMore : PropTypes . bool ,
3133 accountIds : ImmutablePropTypes . list ,
3234 intl : PropTypes . object . isRequired ,
3335 } ;
@@ -41,7 +43,7 @@ class FollowRequests extends ImmutablePureComponent {
4143 } , 300 , { leading : true } ) ;
4244
4345 render ( ) {
44- const { intl, shouldUpdateScroll, accountIds } = this . props ;
46+ const { intl, shouldUpdateScroll, accountIds, hasMore } = this . props ;
4547
4648 if ( ! accountIds ) {
4749 return (
@@ -59,6 +61,7 @@ class FollowRequests extends ImmutablePureComponent {
5961 < ScrollableList
6062 scrollKey = 'follow_requests'
6163 onLoadMore = { this . handleLoadMore }
64+ hasMore = { hasMore }
6265 shouldUpdateScroll = { shouldUpdateScroll }
6366 emptyMessage = { emptyMessage }
6467 >
0 commit comments