From f87dbcbe5eb56f0c881fe2dc74c8b2d2272212f2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-GBA0BK8\\Admin" Date: Wed, 26 Apr 2023 22:40:15 -0400 Subject: [PATCH] Jobs format --- src/components/MyJobs/MyJobTable.jsx | 1010 ++------------------------ src/components/MyJobs/index.jsx | 5 +- src/views/MyJobsPage.jsx | 2 +- 3 files changed, 49 insertions(+), 968 deletions(-) diff --git a/src/components/MyJobs/MyJobTable.jsx b/src/components/MyJobs/MyJobTable.jsx index 3942b42..8531cd3 100644 --- a/src/components/MyJobs/MyJobTable.jsx +++ b/src/components/MyJobs/MyJobTable.jsx @@ -5,7 +5,7 @@ import dataImage3 from "../../assets/images/data-table-user-3.png"; import dataImage4 from "../../assets/images/data-table-user-4.png"; import SelectBox from "../Helpers/SelectBox"; -export default function MyJobTable({ className }) { +export default function MyJobTable({MyJobList, className }) { const filterCategories = ["All Categories", "Explore", "Featured"]; const [selectedCategory, setCategory] = useState(filterCategories[0]); return ( @@ -34,36 +34,38 @@ export default function MyJobTable({ className }) { All Product Value USD - 24H% - Bits Time Status {selectedCategory === "All Categories" ? ( <> - - -
-
- data -
-
-

- Mullican Computer Joy -

- + {MyJobList && MyJobList?.result_list && + MyJobList.result_list.length > 0 && + MyJobList.result_list.map((value) => ( + <> + + +
+
+ data +
+
+

+ {value.title} +

+ Owned by Xoeyam -
-
- - -
+
+
+ + +
- + 7473 ETH -
- - -
- - - - - - - - - - 6392.99$ - -
- - - - -24.75 (11.5%) - - - - - 343 - - - - - 2 Hours 1 min 30s - - - - - - - - -
-
- data -
-
-

- Mullican Computer Joy -

- - Owned by Xoeyam - -
-
- - -
- - - - - - - - - - - - - 7473 ETH - -
- - -
- - - - - - - - - - 6392.99$ - -
- - - - -24.75 (11.5%) - - - - - 343 - - - - - 2 Hours 1 min 30s - - - - - - - - -
-
- data -
-
-

- Mullican Computer Joy -

- - Owned by Xoeyam - -
-
- - -
- - - - - - - - - - - - - 7473 ETH - -
- - -
- - - - - - - - - - 6392.99$ - -
- - - - -24.75 (11.5%) - - - - - 343 - - - - - 2 Hours 1 min 30s - - - - - - - - -
-
- data -
-
-

- Mullican Computer Joy -

- - Owned by Xoeyam - -
-
- - -
- - - - - - - - - - - - - 7473 ETH - -
- - -
- - - - - - - - - - 6392.99$ - -
- - - - -24.75 (11.5%) - - - - - 343 - - - - - 2 Hours 1 min 30s - - - - - - +
+ + + + + + + + + ))} + + ) : selectedCategory === "Explore" ? ( <> - - -
-
- data -
-
-

- Mullican Computer Joy -

- - Owned by Xoeyam - -
-
- - -
- - - - - - - - - - - - - 7473 ETH - -
- - -
- - - - - - - - - - 6392.99$ - -
- - - - -24.75 (11.5%) - - - - - 343 - - - - - 2 Hours 1 min 30s - - - - - - - - -
-
- data -
-
-

- Mullican Computer Joy -

- - Owned by Xoeyam - -
-
- - -
- - - - - - - - - - - - - 7473 ETH - -
- - -
- - - - - - - - - - 6392.99$ - -
- - - - -24.75 (11.5%) - - - - - 343 - - - - - 2 Hours 1 min 30s - - - - - - + ) : ( <> - - -
-
- data -
-
-

- Mullican Computer Joy -

- - Owned by Xoeyam - -
-
- - -
- - - - - - - - - - - - - 7473 ETH - -
- - -
- - - - - - - - - - 6392.99$ - -
- - - - -24.75 (11.5%) - - - - - 343 - - - - - 2 Hours 1 min 30s - - - - - - - - -
-
- data -
-
-

- Mullican Computer Joy -

- - Owned by Xoeyam - -
-
- - -
- - - - - - - - - - - - - 7473 ETH - -
- - -
- - - - - - - - - - 6392.99$ - -
- - - - -24.75 (11.5%) - - - - - 343 - - - - - 2 Hours 1 min 30s - - - - - - + )} diff --git a/src/components/MyJobs/index.jsx b/src/components/MyJobs/index.jsx index 42502b3..6d4e29f 100644 --- a/src/components/MyJobs/index.jsx +++ b/src/components/MyJobs/index.jsx @@ -4,11 +4,12 @@ import Layout from "../Partials/Layout"; import MyJobTable from "./MyJobTable"; import CommonHead from "../UserHeader/CommonHead"; -export default function MyJobs() { +export default function MyJobs(props) { const [selectTab, setValue] = useState("today"); const filterHandler = (value) => { setValue(value); }; + console.log("AMEYE LOC1", props.MyJobList); return ( @@ -32,7 +33,7 @@ export default function MyJobs() { - + diff --git a/src/views/MyJobsPage.jsx b/src/views/MyJobsPage.jsx index 83c5012..6e85279 100644 --- a/src/views/MyJobsPage.jsx +++ b/src/views/MyJobsPage.jsx @@ -24,7 +24,7 @@ export default function MyJobsPage() { getMyJobList(); }, []); - debugger; + // debugger; return ( <>