increased number of item to show in pagination
This commit was merged in pull request #671.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user