BOD-23 Added labor pages tab + finalized time ticket tab + created allocation calculations

This commit is contained in:
Patrick Fic
2020-04-15 15:39:05 -07:00
parent 325a82ac86
commit 8e12320c19
20 changed files with 724 additions and 132 deletions

View File

@@ -0,0 +1,30 @@
import React from "react";
import LaborAllocationsTableComponent from "../labor-allocations-table/labor-allocations-table.component";
import TimeTicketEnterButton from "../time-ticket-enter-button/time-ticket-enter-button.component";
import TimeTicketList from "../time-ticket-list/time-ticket-list.component";
import { useTranslation } from "react-i18next";
export default function JobsDetailLaborContainer({
jobId,
joblines,
timetickets,
refetch,
loading,
}) {
const { t } = useTranslation();
return (
<div>
<TimeTicketEnterButton actions={{ refetch }} context={{ jobid: jobId }}>
{t("timetickets.actions.enter")}
</TimeTicketEnterButton>
<LaborAllocationsTableComponent
joblines={joblines}
timetickets={timetickets}
/>
<TimeTicketList
loading={loading}
timetickets={timetickets}
refetch={refetch}
/>
</div>
);
}