cleaning up some files
This commit is contained in:
@@ -12,6 +12,9 @@ import { Dropdown } from "react-native-element-dropdown";
|
||||
import { connect } from "react-redux";
|
||||
import { OwnerNameDisplayFunction } from "../owner-name-display/owner-name-display.component";
|
||||
|
||||
|
||||
// This component is not currently used
|
||||
|
||||
export function JobSearchSelect(
|
||||
convertedOnly = false,
|
||||
notInvoiced = false,
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,9 +45,6 @@ console.log("TimeTicketClockOff, currentTmTicketJobId :", currentTmTicketJobId);
|
||||
// console.log("TimeTicketClockOff, jobId :", jobId);
|
||||
// console.log("TimeTicketClockOff, timeTicketId :", timeTicketId);
|
||||
const { t } = useTranslation();
|
||||
|
||||
// const [isDatePickerVisible, setDatePickerVisibility] = useState(false);
|
||||
// const [date2, setDate2] = useState(new Date());
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
const [currentSCC, setCurrentSCC] = useState(null);
|
||||
|
||||
Reference in New Issue
Block a user