From f294189e203bfda46c0ef1ccbcb43417318cca54 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sun, 10 Jul 2022 18:50:59 -0500 Subject: [PATCH] Refactor notifications to use Pagination component --- web/components/pagination.tsx | 9 +++--- web/pages/notifications.tsx | 54 +++++++---------------------------- 2 files changed, 15 insertions(+), 48 deletions(-) diff --git a/web/components/pagination.tsx b/web/components/pagination.tsx index f5c5eeab..968e49a8 100644 --- a/web/components/pagination.tsx +++ b/web/components/pagination.tsx @@ -3,8 +3,9 @@ export function Pagination(props: { itemsPerPage: number totalItems: number setPage: (page: number) => void + scrollToTop?: boolean }) { - const { page, itemsPerPage, totalItems, setPage } = props + const { page, itemsPerPage, totalItems, setPage, scrollToTop } = props return (