From 75699342c7f23d16f270c928478e9cf5241760eb Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 10 May 2024 11:58:34 +0100 Subject: [PATCH] modified table pagination --- .../paginatedListing/RecentBVNList.tsx | 19 +++++++++++-------- .../paginatedListing/RecentLoanAppList.tsx | 19 +++++++++++-------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx b/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx index 2c49f2c..c12b353 100644 --- a/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx +++ b/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx @@ -89,17 +89,18 @@ export default function RecentBVNList({
- {data.length && data.map((item, index)=>{ + {/* {data.length && data.map((item, index)=>{ item = item if(index%itemsPerPage == 0 && index >= currentPage && index <= currentPage+itemsPerPage){ return ( @@ -111,24 +112,26 @@ export default function RecentBVNList({ ? "text-slate-400 border-slate-400 dark:text-slate-400 dark:border-slate-400" : "text-slate-600 border-slate-600 dark:text-white dark:border-white pe-none" }`} + disabled={currentPage != index} style={{width:'30px', height:'30px'}} > {index/itemsPerPage +1} ) } - })} + })} */}
)} diff --git a/src/_digifi/layout/components/paginatedListing/RecentLoanAppList.tsx b/src/_digifi/layout/components/paginatedListing/RecentLoanAppList.tsx index 271dbea..8b15af1 100644 --- a/src/_digifi/layout/components/paginatedListing/RecentLoanAppList.tsx +++ b/src/_digifi/layout/components/paginatedListing/RecentLoanAppList.tsx @@ -89,17 +89,18 @@ export default function RecentLoanAppList({
- {data.length && data.map((item, index)=>{ + {/* {data.length && data.map((item, index)=>{ item = item if(index%itemsPerPage == 0 && index >= currentPage && index <= currentPage+itemsPerPage){ return ( @@ -111,24 +112,26 @@ export default function RecentLoanAppList({ ? "text-slate-400 border-slate-400 dark:text-slate-400 dark:border-slate-400" : "text-slate-600 border-slate-600 dark:text-white dark:border-white pe-none" }`} + disabled={currentPage != index} style={{width:'30px', height:'30px'}} > {index/itemsPerPage +1} ) } - })} + })} */}
)}