[Glitch] Replace onScrollToBottom with onLoadMore

Port b0664a5e6c to glitch-soc
This commit is contained in:
Thibaut Girka authored and ThibG committed 2018-05-27 20:40:58 +02:00
1 parent a81ed7b205
commit 8b98afa781
7 files changed
+17 -18

No files matched your search

@@ -62,7 +62,7 @@ export default class Bookmarks extends ImmutablePureComponent {
this.column = c;
}
handleScrollToBottom = debounce(() => {
handleLoadMore = debounce(() => {
this.props.dispatch(expandBookmarkedStatuses());
}, 300, { leading: true })
@@ -89,7 +89,7 @@ export default class Bookmarks extends ImmutablePureComponent {
scrollKey={`bookmarked_statuses-${columnId}`}
hasMore={hasMore}
isLoading={isLoading}
onScrollToBottom={this.handleScrollToBottom}
onLoadMore={this.handleLoadMore}
/>
</Column>
);