cleaning up some files

This commit is contained in:
jfrye122
2023-05-15 13:57:45 -04:00
parent dc798cd92f
commit d860626875
3 changed files with 7 additions and 11 deletions

View File

@@ -1,15 +1,13 @@
import React from "react";
import { useTranslation } from "react-i18next";
import { FlatList, RefreshControl, StyleSheet, Text, View } from "react-native";
import { Card, DataTable } from "react-native-paper";
import { StyleSheet, View } from "react-native";
import { GET_LINE_TICKET_BY_PK } from "../../graphql/jobs.queries";
import ErrorDisplay from "../error-display/error-display.component";
import { useQuery } from "@apollo/client";
import { connect } from "react-redux";
export function LaborAllocationsTableContainer({ jobId }) {
console.log("LaborAllocationsTableContainer, jobId", jobId);
// console.log("LaborAllocationsTableContainer, jobId", jobId);
const { t } = useTranslation();
const { loading, error, data, refetch } = useQuery(GET_LINE_TICKET_BY_PK, {
@@ -18,8 +16,7 @@ export function LaborAllocationsTableContainer({ jobId }) {
fetchPolicy: "network-only",
nextFetchPolicy: "network-only",
});
console.log("LaborAllocationsTableContainer, data", data);
// console.log("LaborAllocationsTableContainer, data", data);
if (error) return <ErrorDisplay errorMessage={error.message} />;
return (
@@ -34,8 +31,7 @@ export function LaborAllocationsTableContainer({ jobId }) {
adjustments={data ? data.jobs_by_pk.lbr_adjustments : []}
/>
) : null}
</View>
</View>
);
}