Adding MyJobs at the place of all jobs in service Jobs.
This commit is contained in:
parent
e755faecdc
commit
17ef307ff2
@ -8,11 +8,10 @@ import { useServiceProject } from "../../hooks/useServiceProject";
|
|||||||
const ServiceJobs = () => {
|
const ServiceJobs = () => {
|
||||||
const { projectId } = useParams();
|
const { projectId } = useParams();
|
||||||
const { data, isLoading, isError } = useJobsProgression(projectId);
|
const { data, isLoading, isError } = useJobsProgression(projectId);
|
||||||
|
|
||||||
const jobs = data || {};
|
const jobs = data || {};
|
||||||
const { data: projectData, isLoading: projectLoading } = useServiceProject(projectId);
|
const { data: projectData, isLoading: projectLoading } = useServiceProject(projectId);
|
||||||
const tabMapping = [
|
const tabMapping = [
|
||||||
{ id: "tab-new", label: "My Jobs", key: "allJobs" },
|
{ id: "tab-new", label: "My Jobs", key: "myJobs" },
|
||||||
{ id: "tab-preparing", label: "Assigned", key: "assignedJobs" },
|
{ id: "tab-preparing", label: "Assigned", key: "assignedJobs" },
|
||||||
{ id: "tab-shipping", label: "In Progress", key: "inProgressJobs" },
|
{ id: "tab-shipping", label: "In Progress", key: "inProgressJobs" },
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user