increased number of item to show in pagination

This commit was merged in pull request #671.
This commit is contained in:
victorAnumudu
2024-03-24 15:57:21 +01:00
parent 748546641d
commit d3b1462fe3
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>