table bug fix

This commit was merged in pull request #14.
This commit is contained in:
victorAnumudu
2025-04-16 19:31:37 +01:00
parent 2086f4ce2b
commit 3b6aa24ba6
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ export default function HomeCom() {
Object.values(dashData?.request_summary).map((item, index) => {
return (
<div key={index} className='flex items-center gap-2'>
<div className='w-10 h-10 bg-white-body dark:bg-black-box dark:shadow-[0_0_0_1px_#f9f9f9] rounded-md flex justify-center items-center'>
<div className='min-w-10 min-h-10 bg-white-body dark:bg-black-box dark:shadow-[0_0_0_1px_#f9f9f9] rounded-md flex justify-center items-center'>
<Icons name='sales' />
</div>
<div>
@@ -86,7 +86,7 @@ export default function HomeCom() {
</div> */}
</div>
<TableWrapper data={dashData?.recent_transactions} itemsPerPage={15}>
<TableWrapper data={dashData?.recent_transactions} itemsPerPage={10}>
{({ data }) => (
<>
<table className="py-2 w-full text-sm">
+1 -1
View File
@@ -87,7 +87,7 @@ export default function TableWrapper({
<div className="text-sm text-center lg:text-left font-normal text-gray-500 dark:text-gray-400 block w-full">Showing <span className="font-semibold text-gray-900 dark:text-white">
{isLoading ? '----' : `${currentPage + 1}-${currentPage + numberOfSelection >= data.length ? data.length : (currentPage + numberOfSelection)}`}</span> of <span className="font-semibold text-gray-900 dark:text-white">{data.length}</span>
</div>
{(newData.length >= itemsPerPage) &&
{(newData.length >= 0) &&
<div className='flex items-center gap-3 md:gap-6'>
<MainBtn
onClick={handlePrev}