added pagination for market list

This commit was merged in pull request #670.
This commit is contained in:
victorAnumudu
2024-03-23 20:06:30 +01:00
parent e87cb95b43
commit 48a50fd47c
5 changed files with 24 additions and 7 deletions
@@ -42,7 +42,7 @@ export default function NewPaginatedList({
filteredData?.slice(currentPage, numberOfSelection + currentPage)
);
}, [currentPage, filteredData]);
console.log("newData", newData, filteredData);
return (
<div className="w-full">
<h1 className="text-2xl mb-5 font-semibold">{tableTitle}</h1>
@@ -89,6 +89,7 @@ export default function NewPaginatedList({
if(index%itemsPerPage == 0 && index >= currentPage && index <= currentPage+itemsPerPage){
return (
<button
key={index}
onClick={handleNext}
className={`w-12 h-12 rounded-full flex justify-center items-center border transition-all duration-300 ${
currentPage != index