From 3cb0604e81fd3ab634004c6dc87970a371bd6955 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 16 May 2023 17:58:14 +0100 Subject: [PATCH 1/2] Button centered --- .../MyActiveJobs/MyActiveJobTable.jsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/components/MyActiveJobs/MyActiveJobTable.jsx b/src/components/MyActiveJobs/MyActiveJobTable.jsx index 9832220..6ea5315 100644 --- a/src/components/MyActiveJobs/MyActiveJobTable.jsx +++ b/src/components/MyActiveJobs/MyActiveJobTable.jsx @@ -96,15 +96,17 @@ export default function MyActiveJobTable({ MyJobList, className }) { - +
+ +
))} From 448c1c69ba6e17715c77dc4205b34910a9bbe1be Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 16 May 2023 19:03:39 -0400 Subject: [PATCH 2/2] active job message --- .../MyActiveJobs/ActiveJobMessage.jsx | 1137 +++++++++++++++++ src/components/MyActiveJobs/ActiveJobs.jsx | 8 +- 2 files changed, 1140 insertions(+), 5 deletions(-) create mode 100644 src/components/MyActiveJobs/ActiveJobMessage.jsx diff --git a/src/components/MyActiveJobs/ActiveJobMessage.jsx b/src/components/MyActiveJobs/ActiveJobMessage.jsx new file mode 100644 index 0000000..8717098 --- /dev/null +++ b/src/components/MyActiveJobs/ActiveJobMessage.jsx @@ -0,0 +1,1137 @@ +import React, { useState } from "react"; +import dataImage1 from "../../assets/images/data-table-user-1.png"; +import dataImage2 from "../../assets/images/data-table-user-2.png"; +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"; + +import PaginatedList from "../Pagination/PaginatedList"; +import { handlePagingFunc } from "../Pagination/HandlePagination"; + +export default function ActiveJobMessage({ className }) { + const filterCategories = ["All Categories", "Explore", "Featured"]; + const [selectedCategory, setCategory] = useState(filterCategories[0]); + + let data = ['1', '2', '3', '4', '5', '6'] // to be replaced later by result from API CALL + + const [currentPage, setCurrentPage] = useState(0); + const indexOfFirstItem = Number(currentPage); + const indexOfLastItem = Number(indexOfFirstItem)+Number(process.env.REACT_APP_ITEM_PER_PAGE); + const currentTask = data.slice(indexOfFirstItem, indexOfLastItem); + + const handlePagination = (e) => { + handlePagingFunc(e,setCurrentPage) + } + + return ( +
+ {/*
*/} + {/*
*/} + {/*

*/} + {/* Products History*/} + {/*

*/} + {/*
*/} + {/* */} + {/*
*/} + {data.length && +
+ + + {selectedCategory === "All Categories" ? ( + currentTask.map((item,index)=>( + + + + )) + ) : selectedCategory === "Explore" ? ( + currentTask.map((item,index)=>( + + + + )) + ) : ( + currentTask.map((item,index)=>( + + + + )) + )} + + {/* {selectedCategory === "All Categories" ? ( + <> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) : selectedCategory === "Explore" ? ( + <> + + + + + + + + + + + + + + + + + + + + ) : ( + <> + + + + + + + + + + + + + + + + + + + + )} */} + +
+
+
+

+ Mullican Joy +

+ + Owned by Xoeyam + +
+
+
+
+
+

+ Mullican Joy +

+ + Owned by Xoeyam + +
+
+
+
+
+ data +
+
+

+ Mullican Computer Joy +

+ + Owned by Xoeyam + +
+
+
+
+
+ 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 + + + +
+
+
+ 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 + + + +
+ + {/* PAGINATION BUTTON */} + = data.length ? true : false} data={data} start={indexOfFirstItem} stop={indexOfLastItem} /> + {/* END OF PAGINATION BUTTON */} +
+ } +
+ ); +} diff --git a/src/components/MyActiveJobs/ActiveJobs.jsx b/src/components/MyActiveJobs/ActiveJobs.jsx index fffb912..9ad4890 100644 --- a/src/components/MyActiveJobs/ActiveJobs.jsx +++ b/src/components/MyActiveJobs/ActiveJobs.jsx @@ -3,6 +3,7 @@ import { useSelector } from "react-redux"; import ModalCom from "../Helpers/ModalCom"; import Layout from "../Partials/Layout"; import { useLocation, useNavigate } from "react-router-dom"; +import ActiveJobMessage from "./ActiveJobMessage"; function ActiveJobs() { let { userDetails } = useSelector((state) => state.userDetails); @@ -120,6 +121,7 @@ function ActiveJobs() { Send + {/* end of Buttons Sections */} @@ -138,11 +140,7 @@ function ActiveJobs() {

Message

-