From b72d9ccc35d0fc38d04df2fea02366deb81b008b Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 6 Jun 2023 12:34:18 -0400 Subject: [PATCH] past due jobs --- src/components/MyActiveJobs/MyPastDueJobs.jsx | 43 +++++++++++++++++++ src/views/MyPastDueJobsPage.jsx | 5 ++- 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 src/components/MyActiveJobs/MyPastDueJobs.jsx diff --git a/src/components/MyActiveJobs/MyPastDueJobs.jsx b/src/components/MyActiveJobs/MyPastDueJobs.jsx new file mode 100644 index 0000000..0390f10 --- /dev/null +++ b/src/components/MyActiveJobs/MyPastDueJobs.jsx @@ -0,0 +1,43 @@ +import React, { useState } from "react"; +import { Link } from "react-router-dom"; +import Layout from "../Partials/Layout"; +import CommonHead from "../UserHeader/CommonHead"; +import MyActiveJobTable from "./MyActiveJobTable"; + +export default function MyPastDueJobs(props) { + const [selectTab, setValue] = useState("today"); + const filterHandler = (value) => { + setValue(value); + }; + console.log("AMEYE LOC1", props.MyJobList); + return ( + + +
+
+ {/* heading */} +
+
+

+ + Pass Due Job(s) + +

+
+
+
filterHandler("today")} + className="relative" + >
+
+
+ +
+
+
+ ); +} diff --git a/src/views/MyPastDueJobsPage.jsx b/src/views/MyPastDueJobsPage.jsx index d603a17..926228b 100644 --- a/src/views/MyPastDueJobsPage.jsx +++ b/src/views/MyPastDueJobsPage.jsx @@ -1,7 +1,8 @@ import React, { useContext,useState, useEffect } from "react"; import usersService from "../services/UsersService"; //import MyJobs from "../components/MyJobs"; -import MyActiveJobs from "../components/MyActiveJobs"; +//import MyActiveJobs from "../components/MyActiveJobs"; +import MyPastDueJobs from "../components/MyActiveJobs/MyPastDueJobs"; export default function MyPastDueJobsPage() { const commonHeadData =()=>{ @@ -26,7 +27,7 @@ export default function MyPastDueJobsPage() { // debugger; return ( <> -