Start job page

This commit is contained in:
CHIEFSOFT\ameye
2023-05-07 15:51:48 -04:00
parent 10657e835e
commit 8702a66371
3 changed files with 96 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import React, { useContext,useState, useEffect } from "react";
import usersService from "../services/UsersService";
import StartJob from "../components/MyJobs/StartJob";
export default function StartJobPage() {
// const userApi = new usersService();
// const activeJobList = userApi.getMyJobList();
const [MyJobList, setMyJobList] = useState([]);
const api = new usersService();
const getMyJobList = async () => {
try {
const res = await api.getMyJobList();
setMyJobList(res.data);
} catch (error) {
console.log("Error getting mode");
}
};
useEffect(() => {
getMyJobList();
}, []);
// debugger;
return (
<>
<StartJob MyJobList={MyJobList} />
</>
);
}