From 0377603732146d1a793dc2f385d6df4e0d381517 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 10 Mar 2020 15:54:43 -0700 Subject: [PATCH] Missed removal of comment in last commit --- .../jobs-detail-header.component.jsx | 13 +----------- .../jobs-detail.page.component.jsx | 20 +++---------------- .../jobs-detail.page.container.jsx | 7 +------ .../pages/manage/manage.page.component.jsx | 3 --- 4 files changed, 5 insertions(+), 38 deletions(-) diff --git a/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx b/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx index 7bb3e5c7b..41ab800fb 100644 --- a/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx +++ b/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx @@ -1,16 +1,5 @@ -import { - Avatar, - Badge, - Button, - Checkbox, - Descriptions, - Dropdown, - Menu, - notification, - PageHeader, - Tag -} from "antd"; import { DownCircleFilled } from "@ant-design/icons"; +import { Avatar, Badge, Button, Checkbox, Descriptions, Dropdown, Menu, notification, PageHeader, Tag } from "antd"; import React from "react"; import { useTranslation } from "react-i18next"; import Moment from "react-moment"; diff --git a/client/src/pages/jobs-detail/jobs-detail.page.component.jsx b/client/src/pages/jobs-detail/jobs-detail.page.component.jsx index 14fbfcdfe..cb6aaca39 100644 --- a/client/src/pages/jobs-detail/jobs-detail.page.component.jsx +++ b/client/src/pages/jobs-detail/jobs-detail.page.component.jsx @@ -1,22 +1,10 @@ -import Icon, { - BarsOutlined, - CalendarFilled, - DollarCircleOutlined, - FileImageFilled, - ToolFilled -} from "@ant-design/icons"; -import { useHistory, useLocation } from "react-router-dom"; +import Icon, { BarsOutlined, CalendarFilled, DollarCircleOutlined, FileImageFilled, ToolFilled } from "@ant-design/icons"; import { Form, notification, Tabs } from "antd"; import moment from "moment"; import React, { lazy, Suspense } from "react"; import { useTranslation } from "react-i18next"; -import { - FaHardHat, - FaInfo, - FaRegStickyNote, - FaShieldAlt, - FaHistory -} from "react-icons/fa"; +import { FaHardHat, FaHistory, FaInfo, FaRegStickyNote, FaShieldAlt } from "react-icons/fa"; +import { useHistory } from "react-router-dom"; //import JobsLinesContainer from "../../components/job-detail-lines/job-lines.container"; //import JobsDetailClaims from "../../components/jobs-detail-claims/jobs-detail-claims.component"; //import JobsDetailDatesComponent from "../../components/jobs-detail-dates/jobs-detail-dates.component"; @@ -90,8 +78,6 @@ export default function JobsDetailPage({ const [form] = Form.useForm(); const history = useHistory(); - console.log("history, location", history); - // history.replace(); const formItemLayout = { labelCol: { xs: { span: 12 }, diff --git a/client/src/pages/jobs-detail/jobs-detail.page.container.jsx b/client/src/pages/jobs-detail/jobs-detail.page.container.jsx index 63747a993..ba80c9913 100644 --- a/client/src/pages/jobs-detail/jobs-detail.page.container.jsx +++ b/client/src/pages/jobs-detail/jobs-detail.page.container.jsx @@ -4,12 +4,7 @@ import { useMutation, useQuery } from "react-apollo"; import { useTranslation } from "react-i18next"; import AlertComponent from "../../components/alert/alert.component"; import SpinComponent from "../../components/loading-spinner/loading-spinner.component"; -import { - CONVERT_JOB_TO_RO, - GET_JOB_BY_PK, - UPDATE_JOB, - UPDATE_JOB_STATUS -} from "../../graphql/jobs.queries"; +import { CONVERT_JOB_TO_RO, GET_JOB_BY_PK, UPDATE_JOB, UPDATE_JOB_STATUS } from "../../graphql/jobs.queries"; import JobsDetailPage from "./jobs-detail.page.component"; function JobsDetailPageContainer({ match }) { diff --git a/client/src/pages/manage/manage.page.component.jsx b/client/src/pages/manage/manage.page.component.jsx index ea626882b..0fcba070e 100644 --- a/client/src/pages/manage/manage.page.component.jsx +++ b/client/src/pages/manage/manage.page.component.jsx @@ -17,9 +17,6 @@ const JobsDetailPage = lazy(() => import("../jobs-detail/jobs-detail.page.container") ); const ProfilePage = lazy(() => import("../profile/profile.container.page")); -const JobsDocumentsPage = lazy(() => - import("../../components/jobs-documents/jobs-documents.container") -); const JobsAvailablePage = lazy(() => import("../jobs-available/jobs-available.page.container") );