Skip to content

Commit

Permalink
Removed load more button
Browse files Browse the repository at this point in the history
  • Loading branch information
shauryag2002 committed Oct 15, 2024
1 parent eafe7c3 commit 6324be2
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Components/Notifications/NotificationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,22 +451,6 @@ export default function NotificationsList({
<CircularProgress />
</div>
)}
{!showUnread &&
totalCount > RESULT_LIMIT &&
offset < totalCount - RESULT_LIMIT && (
<div className="mt-4 flex w-full justify-center px-4 py-5 lg:px-8">
<ButtonV2
className="w-full"
disabled={isLoading}
variant="secondary"
shadow
border
onClick={() => setOffset((prev) => prev + RESULT_LIMIT)}
>
{isLoading ? t("loading") : t("load_more")}
</ButtonV2>
</div>
)}
</>
);
} else if (data && data.length === 0) {
Expand Down

0 comments on commit 6324be2

Please sign in to comment.