Family Page

This commit is contained in:
CHIEFSOFT\ameye
2023-05-06 21:34:49 -04:00
parent c34fea5c7f
commit 8beab8e6ac
4 changed files with 1136 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
import React, { useContext,useState, useEffect } from "react";
import usersService from "../services/UsersService";
import FamilyAcc from "../components/FamilyAcc";
export default function FamilyAccPage() {
const [MyActiveJobList, setMyActiveJobList] = useState([]);
const api = new usersService();
const getMyActiveJobList = async () => {
try {
const res = await api.getMyActiveJobList();
setMyActiveJobList(res.data);
} catch (error) {
console.log("Error getting mode");
}
};
useEffect(() => {
getMyActiveJobList();
}, []);
//debugger;
return (
<>
<FamilyAcc ActiveJobList={MyActiveJobList}/>
</>
);
}