From 31b2fa2c14fedd489de58ea3dcd54244985121fb Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Fri, 22 Mar 2024 20:46:13 +0530 Subject: [PATCH] fix: profile activity load more button (#4049) --- web/pages/profile/activity.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web/pages/profile/activity.tsx b/web/pages/profile/activity.tsx index b3d88b1b32..f2a73c1808 100644 --- a/web/pages/profile/activity.tsx +++ b/web/pages/profile/activity.tsx @@ -41,17 +41,19 @@ const ProfileActivityPage: NextPageWithLayout = observer(() => { /> ); + const isLoadMoreVisible = pageCount < totalPages && resultsCount !== 0; + return ( <> -
-
+
+
themeStore.toggleSidebar()} />

Activity

-
+
{activityPages} - {pageCount < totalPages && resultsCount !== 0 && ( + {isLoadMoreVisible && (