diff --git a/src/components/History/RewardsTable.jsx b/src/components/History/RewardsTable.jsx index fb3ac0c..c67901d 100644 --- a/src/components/History/RewardsTable.jsx +++ b/src/components/History/RewardsTable.jsx @@ -50,7 +50,7 @@ function RewardsTable() {
{familyRewardHistory.loading ? - : + : familyRewardHistory.data.length ? @@ -60,8 +60,6 @@ function RewardsTable() { - {familyRewardHistory.data.length ? - ( {currentReward.map((item, index) => { let date = new Date(item.added).toLocaleDateString() @@ -84,24 +82,15 @@ function RewardsTable() { } )} - ) - : - familyRewardHistory.error ? - ( - - - - - - ) - : - - - - - - }
Confirmation
Opps! an error occurred. Please try again!
No Rewards History Found!
+ :familyRewardHistory.error ? +
+ Opps! an error occurred. Please try again! +
+ : +
+ No Rewards History Found! +
} {/* PAGINATION BUTTON */} diff --git a/src/components/History/index.jsx b/src/components/History/index.jsx index d2ffa1b..3c66062 100644 --- a/src/components/History/index.jsx +++ b/src/components/History/index.jsx @@ -255,9 +255,9 @@ export default function History() { {/* PURCHASE SECTION */} {tab == 'purchases' &&
-

Purchases

+ {/*

Purchases

*/} {purchaseHistory.loading ? - + : } @@ -268,10 +268,10 @@ export default function History() { {/* RECENT ACTIVITY SECTION */} {tab == 'recent' &&
-

Recent Activity

+ {/*

Recent Activity

*/} {/*

Activity Report

*/} {paymentHistory.loading ? - + : } diff --git a/src/components/MyWallet/WalletComponent/PurchasesTable.jsx b/src/components/MyWallet/WalletComponent/PurchasesTable.jsx index c8635a7..3d44411 100644 --- a/src/components/MyWallet/WalletComponent/PurchasesTable.jsx +++ b/src/components/MyWallet/WalletComponent/PurchasesTable.jsx @@ -16,45 +16,36 @@ function PurchasesTable({purchase}) { return (
- - - - - - - - {purchase.data.length ? - ( - - {currentPurchase.map((item, index) => ( - - - - - - ))} - - ) +
Trx.AmountFee
{item.added_date}
- {item.confirmation} -
{item.amount}{item.fee}
+ + + + + + + + + {currentPurchase.map((item, index) => ( + + + + + + ))} + +
Trx.AmountFee
{item.added_date}
+ {item.confirmation} +
{item.amount}{item.fee}
+ :purchase.error ? +
+ Opps! an error occurred. Please try again! +
: - purchase.error ? - ( - - - Opps! an error occurred. Please try again! - - - ) - : - - - No Purchase History Found! - - +
+ No Payment History Found! +
} - {/* PAGINATION BUTTON */} = purchase?.data?.length ? true : false} data={purchase?.data} start={indexOfFirstItem} stop={indexOfLastItem} /> diff --git a/src/components/MyWallet/WalletComponent/RecentActivityTable.jsx b/src/components/MyWallet/WalletComponent/RecentActivityTable.jsx index 03f6236..9c847f7 100644 --- a/src/components/MyWallet/WalletComponent/RecentActivityTable.jsx +++ b/src/components/MyWallet/WalletComponent/RecentActivityTable.jsx @@ -19,16 +19,16 @@ function RecentActivityTable({ payment }) { return (
- - - - - - - - - - {payment?.data?.length > 0 ? ( + {payment?.data?.length > 0 ? +
DateTrx.Amnt./FeeStatus
+ + + + + + + + {currentActivity.map((item, index) => ( @@ -46,24 +46,16 @@ function RecentActivityTable({ payment }) { ))} - ) : payment?.error ? ( - - - - - - ) : ( - - - - - - )} -
DateTrx.Amnt./FeeStatus
- Opps! an error occurred. Please try again! -
- No Payment History Found! -
+ + :payment.error ? +
+ Opps! an error occurred. Please try again! +
+ : +
+ No Payment History Found! +
+ } {/* PAGINATION BUTTON */}