diff --git a/src/components/History/JobsCompleted.jsx b/src/components/History/JobsCompleted.jsx index 2aef7ad..3da3f18 100644 --- a/src/components/History/JobsCompleted.jsx +++ b/src/components/History/JobsCompleted.jsx @@ -97,7 +97,7 @@ function JobsCompleted() { } {/* PAGINATION BUTTON */} - = jobHistory?.data?.length ? true : false} data={jobHistory?.data} start={indexOfFirstItem} stop={indexOfLastItem} /> + = jobHistory?.data?.length ? true : false} data={jobHistory?.data} start={indexOfFirstItem} stop={indexOfLastItem} /> {/* END OF PAGINATION BUTTON */} ) diff --git a/src/components/History/RewardsTable.jsx b/src/components/History/RewardsTable.jsx index e22ab19..973c882 100644 --- a/src/components/History/RewardsTable.jsx +++ b/src/components/History/RewardsTable.jsx @@ -94,7 +94,7 @@ export const RewardsTable = memo(() => { } {/* PAGINATION BUTTON */} - = familyRewardHistory?.data?.length ? true : false} data={familyRewardHistory?.data} start={indexOfFirstItem} stop={indexOfLastItem} /> + = familyRewardHistory?.data?.length ? true : false} data={familyRewardHistory?.data} start={indexOfFirstItem} stop={indexOfLastItem} /> {/* END OF PAGINATION BUTTON */} ) diff --git a/src/components/History/index.jsx b/src/components/History/index.jsx index 2bb25f7..b3329fd 100644 --- a/src/components/History/index.jsx +++ b/src/components/History/index.jsx @@ -74,255 +74,81 @@ export default function History() { <>
-
-
-
-

+
+
+
+

- History + History -

-
-
+

+
+
-
-
- {/*
*/} - {/*
*/} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/*
*/} - {/*
*/} - {/**/} - {/* */} -
- {/* switch button */} -
- {tabs.map((item) => ( - - ))} +
- {/* switch button */} - {/*
- - - - -
*/} - {/* END OF switch button */} -
- {/* PURCHASE SECTION */} - {selectedTab == 'purchases' && -
- {/*

Purchases

*/} - {purchaseHistory.loading ? - - : - +
+
+
+ {tabs.map((item) => ( + + ))} +
+
+
+
+ <> + {/* PURCHASE SECTION */} + {selectedTab == 'purchases' && +
+ {/*

Purchases

*/} + {purchaseHistory.loading ? + + : + + } +
} -
- } - {/* END OF PURCHASE SECTION */} - - {/* RECENT ACTIVITY SECTION */} - {selectedTab == 'recent activity' && -
- {/*

Recent Activity

*/} - {/*

Activity Report

*/} - {paymentHistory.loading ? - - : - - } -
- } - {/* END OF RECENT ACTIVITY SECTION */} + {/* END OF PURCHASE SECTION */} + + {/* RECENT ACTIVITY SECTION */} + {selectedTab == 'recent activity' && +
+ {/*

Recent Activity

*/} + {/*

Activity Report

*/} + {paymentHistory.loading ? + + : + + } +
+ } + {/* END OF RECENT ACTIVITY SECTION */} - {/* REWARD SECTION */} - {selectedTab == 'rewards' && -
- -
- } - {/* END OF REWARD SECTION */} + {/* REWARD SECTION */} + {selectedTab == 'rewards' && +
+ +
+ } + {/* END OF REWARD SECTION */} - {/* JOBS COMPLETED SECTION */} - {selectedTab == 'jobs completed' && -
- -
- } - {/* END OF JOBS COMPLETED SECTION */} + {/* JOBS COMPLETED SECTION */} + {selectedTab == 'jobs completed' && +
+ +
+ } + {/* END OF JOBS COMPLETED SECTION */} + +
- {/**/} -
diff --git a/src/components/MyWallet/WalletComponent/PurchasesTable.jsx b/src/components/MyWallet/WalletComponent/PurchasesTable.jsx index e7115fa..6377cb5 100644 --- a/src/components/MyWallet/WalletComponent/PurchasesTable.jsx +++ b/src/components/MyWallet/WalletComponent/PurchasesTable.jsx @@ -48,7 +48,7 @@ function PurchasesTable({purchase}) { } {/* PAGINATION BUTTON */} - = purchase?.data?.length ? true : false} data={purchase?.data} start={indexOfFirstItem} stop={indexOfLastItem} /> + = purchase?.data?.length ? true : false} data={purchase?.data} start={indexOfFirstItem} stop={indexOfLastItem} /> {/* END OF PAGINATION BUTTON */} ) diff --git a/src/components/MyWallet/WalletComponent/RecentActivityTable.jsx b/src/components/MyWallet/WalletComponent/RecentActivityTable.jsx index ae7a06e..ded5bf1 100644 --- a/src/components/MyWallet/WalletComponent/RecentActivityTable.jsx +++ b/src/components/MyWallet/WalletComponent/RecentActivityTable.jsx @@ -70,7 +70,6 @@ function RecentActivityTable({ payment }) { data={payment?.data} start={indexOfFirstItem} stop={indexOfLastItem} - borderTop={false} /> {/* END OF PAGINATION BUTTON */} diff --git a/src/components/customTabs/TabButton.jsx b/src/components/customTabs/TabButton.jsx index 611cf72..da3b7eb 100644 --- a/src/components/customTabs/TabButton.jsx +++ b/src/components/customTabs/TabButton.jsx @@ -3,22 +3,13 @@ import React from 'react' export default function TabButton({ item='', selectedTab='', setSelectedTab=()=>{} }) { return ( )