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 ?
|
{products?.length ?
|
||||||
<NewPaginatedList
|
<NewPaginatedList
|
||||||
data={products}
|
data={products}
|
||||||
itemsPerPage={6}
|
itemsPerPage={9}
|
||||||
filterItem=''
|
filterItem=''
|
||||||
tableTitle=''
|
tableTitle=''
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ export default function NewPaginatedList({
|
|||||||
);
|
);
|
||||||
}, [currentPage, filteredData]);
|
}, [currentPage, filteredData]);
|
||||||
|
|
||||||
|
useEffect(()=>{
|
||||||
|
setCurrentPage(0)
|
||||||
|
},[itemsPerPage])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<h1 className="text-2xl mb-5 font-semibold">{tableTitle}</h1>
|
<h1 className="text-2xl mb-5 font-semibold">{tableTitle}</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user