diff --git a/src/components/MyActiveJobs/MyActiveJobTable.jsx b/src/components/MyActiveJobs/MyActiveJobTable.jsx index c942f74..f389c3c 100644 --- a/src/components/MyActiveJobs/MyActiveJobTable.jsx +++ b/src/components/MyActiveJobs/MyActiveJobTable.jsx @@ -42,45 +42,49 @@ export default function MyActiveJobTable({MyJobList, className }) { MyJobList.result_list.length > 0 && currentActiveJobList.map((value, index) => ( - -
-
- data -
-
-

- {value.title} -

-
- {value.description} + +
+
+ data +
+
+

+ {value.title} +

+
+ {value.description} +
+ + Price: {value.price*0.01} + + + Duration: {value.timeline_days} day(s) + + + Expire: {value.expire} + + + Send to: {value.job_to} + +
- - Price: {value.price*0.01} - - - Duration: {value.timeline_days} day(s) - - - Expire: {value.expire} -
-
- + - - - - + + + + ))} diff --git a/src/components/Pagination/PaginatedList.jsx b/src/components/Pagination/PaginatedList.jsx index 0df5553..bf6a1c5 100644 --- a/src/components/Pagination/PaginatedList.jsx +++ b/src/components/Pagination/PaginatedList.jsx @@ -3,49 +3,53 @@ import { createRoutesFromChildren } from 'react-router-dom'; const PaginatedList = ({ onClick, prev, next, data, start, stop }) => { - return ( -
- {/* Render pagination buttons */} - {!prev && - - } + if(data.length){ + return ( +
+ {/* Render pagination buttons */} + {!prev && + + } - { - data.map((item, index)=>{ - if(index%process.env.REACT_APP_ITEM_PER_PAGE == 0 && index >= start && index <= stop){ - return ( - - ) - } - }) - } - - {!next && - - } -
- ); + { + data.map((item, index)=>{ + if(index%process.env.REACT_APP_ITEM_PER_PAGE == 0 && index >= start && index <= stop){ + return ( + + ) + } + }) + } + + {!next && + + } +
+ ) + }else{ + return null + } }; export default PaginatedList;