increased number of item to show in pagination #671

Merged
ameye merged 1 commits from pagination-item into master 2024-03-24 19:25:43 +00:00
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ export default function MainSection({
{products?.length ?
<NewPaginatedList
data={products}
itemsPerPage={6}
itemsPerPage={9}
filterItem=''
tableTitle=''
>
@@ -43,6 +43,10 @@ export default function NewPaginatedList({
);
}, [currentPage, filteredData]);
useEffect(()=>{
setCurrentPage(0)
},[itemsPerPage])
return (
<div className="w-full">
<h1 className="text-2xl mb-5 font-semibold">{tableTitle}</h1>