From 0035cefa14f101983d5a04dd6068441f4ae74960 Mon Sep 17 00:00:00 2001 From: David Sevilla Martin Date: Mon, 10 May 2021 16:58:19 -0400 Subject: [PATCH] Add load previous button to DiscussionList --- js/src/forum/components/DiscussionList.js | 12 ++++++++++++ less/forum/DiscussionList.less | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/js/src/forum/components/DiscussionList.js b/js/src/forum/components/DiscussionList.js index 052d40d70..25023fdc6 100644 --- a/js/src/forum/components/DiscussionList.js +++ b/js/src/forum/components/DiscussionList.js @@ -41,6 +41,18 @@ export default class DiscussionList extends Component { return (
+ {state.hasPrev() && ( +
+ {state.isLoadingPrev() ? ( + + ) : ( + + )} +
+ )} +