From f7aa89496ab62a41cae16d8da83e4e2545b77d12 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 13 Jan 2020 09:33:17 -0800 Subject: [PATCH] Remove compile errors --- .../job-detail-cards.component.jsx | 11 ++- .../job-detail-cards.header.component.jsx | 74 ------------------- .../jobs-list/jobs-list.component.jsx | 8 +- 3 files changed, 9 insertions(+), 84 deletions(-) delete mode 100644 client/src/components/job-detail-cards/job-detail-cards.header.component.jsx diff --git a/client/src/components/job-detail-cards/job-detail-cards.component.jsx b/client/src/components/job-detail-cards/job-detail-cards.component.jsx index c3789ab46..f40ea86b5 100644 --- a/client/src/components/job-detail-cards/job-detail-cards.component.jsx +++ b/client/src/components/job-detail-cards/job-detail-cards.component.jsx @@ -3,9 +3,9 @@ import { useTranslation } from "react-i18next"; import { useQuery } from "@apollo/react-hooks"; import AlertComponent from "../alert/alert.component"; import { QUERY_JOB_CARD_DETAILS } from "../../graphql/jobs.queries"; -import { PageHeader, Button, Descriptions, Menu, Icon } from "antd"; +import { PageHeader, Button, Descriptions, Tag, Icon } from "antd"; -import JobDetailCardsHeaderComponent from "./job-detail-cards.header.component"; +//import JobDetailCardsHeaderComponent from "./job-detail-cards.header.component"; import JobDetailCardsCustomerComponent from "./job-detail-cards.customer.component"; import JobDetailCardsVehicleComponent from "./job-detail-cards.vehicle.component"; import JobDetailCardsInsuranceComponent from "./job-detail-cards.insurance.component"; @@ -32,11 +32,12 @@ export default function JobDetailCards({ selectedJob }) { } if (error) return ; - + console.log("data", data); return ( window.history.back()} + tags={{data?.jobs_by_pk.job_status?.name}} title={ data?.jobs_by_pk.ro_number ? `${t("jobs.fields.ro_number")} ${data?.jobs_by_pk.ro_number}` @@ -63,9 +64,7 @@ export default function JobDetailCards({ selectedJob }) { > Lili Qu - - 421421 - + 421421 2017-01-10 2017-10-10 diff --git a/client/src/components/job-detail-cards/job-detail-cards.header.component.jsx b/client/src/components/job-detail-cards/job-detail-cards.header.component.jsx deleted file mode 100644 index 71b3acc81..000000000 --- a/client/src/components/job-detail-cards/job-detail-cards.header.component.jsx +++ /dev/null @@ -1,74 +0,0 @@ -import { Icon, Menu, Row, Col, PageHeader, Button, Descriptions } from "antd"; -import React from "react"; -import { useTranslation } from "react-i18next"; - -export default function JobDetailCardsHeader({ selectedJob, data }) { - const { t } = useTranslation(); - - return ( -
- window.history.back()} - title="Title" - subTitle="This is a subtitle" - extra={[ - , - , - - ]} - > - - Lili Qu - - 421421 - - - 2017-01-10 - - - 2017-10-10 - - - Gonghu Road, Xihu District, Hangzhou, Zhejiang, China - - - - The rest of the content can go heare? - - - Name - - - - - {t("jobs.actions.viewJobImages")} - - - - {t("jobs.actions.printCenter")} - - - - {t("jobs.actions.notes")} - - - - {t("jobs.actions.postInvoices")} - - - - {t("jobs.actions.receiveParts")} - - - - {t("jobs.actions.partStatus")} - - - - -
- ); -} diff --git a/client/src/components/jobs-list/jobs-list.component.jsx b/client/src/components/jobs-list/jobs-list.component.jsx index fb79da28a..1b2bbe07d 100644 --- a/client/src/components/jobs-list/jobs-list.component.jsx +++ b/client/src/components/jobs-list/jobs-list.component.jsx @@ -124,10 +124,10 @@ export default function JobsPage({ setState({ ...state, filteredInfo: filters, sortedInfo: sorter }); }; - const handleChange = event => { - const { value } = event.target; - setState({ ...state, filterinfo: { text: [value] } }); - }; + // const handleChange = event => { + // const { value } = event.target; + // setState({ ...state, filterinfo: { text: [value] } }); + // }; const handleOnRowClick = record => { if (record) {