diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-05-27 17:46:48 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-05-27 20:40:58 +0200 |
commit | 8b98afa781018bc7cfdb325f6b1fca0b1edcd8cb (patch) | |
tree | cb1f210822d54d4d0e862526e7c3bbb0a5c3a34d /app/javascript/flavours/glitch/features/favourited_statuses | |
parent | a81ed7b205893ff1205d2d208884f9a3783cc202 (diff) |
[Glitch] Replace onScrollToBottom with onLoadMore
Port b0664a5e6cee9be602098fb9a2f98a9e61b2ab9b to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/features/favourited_statuses')
-rw-r--r-- | app/javascript/flavours/glitch/features/favourited_statuses/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/favourited_statuses/index.js b/app/javascript/flavours/glitch/features/favourited_statuses/index.js index 301a5ae4f..d8fa1b84e 100644 --- a/app/javascript/flavours/glitch/features/favourited_statuses/index.js +++ b/app/javascript/flavours/glitch/features/favourited_statuses/index.js @@ -62,7 +62,7 @@ export default class Favourites extends ImmutablePureComponent { this.column = c; } - handleScrollToBottom = debounce(() => { + handleLoadMore = debounce(() => { this.props.dispatch(expandFavouritedStatuses()); }, 300, { leading: true }) @@ -89,7 +89,7 @@ export default class Favourites extends ImmutablePureComponent { scrollKey={`favourited_statuses-${columnId}`} hasMore={hasMore} isLoading={isLoading} - onScrollToBottom={this.handleScrollToBottom} + onLoadMore={this.handleLoadMore} /> </Column> ); |