From d3b1462fe3b61128b44cea67ec05d4e4aed83654 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Sun, 24 Mar 2024 15:57:21 +0100 Subject: [PATCH] increased number of item to show in pagination --- src/components/MarketPlace/MainSection.jsx | 2 +- src/components/Pagination/NewPaginatedList.jsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/MarketPlace/MainSection.jsx b/src/components/MarketPlace/MainSection.jsx index db8dc29..c06e18e 100644 --- a/src/components/MarketPlace/MainSection.jsx +++ b/src/components/MarketPlace/MainSection.jsx @@ -128,7 +128,7 @@ export default function MainSection({ {products?.length ? diff --git a/src/components/Pagination/NewPaginatedList.jsx b/src/components/Pagination/NewPaginatedList.jsx index 8a06307..4283c50 100644 --- a/src/components/Pagination/NewPaginatedList.jsx +++ b/src/components/Pagination/NewPaginatedList.jsx @@ -43,6 +43,10 @@ export default function NewPaginatedList({ ); }, [currentPage, filteredData]); + useEffect(()=>{ + setCurrentPage(0) + },[itemsPerPage]) + return (

{tableTitle}

-- 2.34.1