From 75699342c7f23d16f270c928478e9cf5241760eb Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 10 May 2024 11:58:34 +0100 Subject: [PATCH 1/2] 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} ) } - })} + })} */}
)} From 4cb347cfa05576d134ea2784ce9bd29528931e5a Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 10 May 2024 12:46:15 +0100 Subject: [PATCH 2/2] modified table pagination --- .../layout/components/paginatedListing/RecentBVNList.tsx | 2 +- .../layout/components/paginatedListing/RecentLoanAppList.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx b/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx index c12b353..c3967c4 100644 --- a/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx +++ b/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx @@ -86,7 +86,7 @@ export default function RecentBVNList({ {/* show prev and next button if data exist */} {(data.length > 0 && data.length > itemsPerPage) && ( -
+