UI fixes for manual job creation + owners pages + vehicles pages + all jobs BOD-155

This commit is contained in:
Patrick Fic
2020-06-12 17:54:20 -07:00
parent a88785fc43
commit 05bf94e808
37 changed files with 1339 additions and 972 deletions

View File

@@ -1,8 +1,13 @@
import { Col, Row, Typography } from "antd";
import React from "react";
import { Row, Col, Typography } from "antd";
import { useTranslation } from "react-i18next";
import JobsCreateOwnerInfoNewComponent from "./jobs-create-owner-info.new.component";
import JobsCreateOwnerInfoSearchComponent from "./jobs-create-owner-info.search.component";
import { useTranslation } from "react-i18next";
const colSpan = {
sm: { span: 24 },
lg: { span: 12 },
};
export default function JobsCreateOwnerInfoComponent({ loading, owners }) {
const { t } = useTranslation();
@@ -11,15 +16,15 @@ export default function JobsCreateOwnerInfoComponent({ loading, owners }) {
<Row>
<Typography.Title>{t("jobs.labels.create.ownerinfo")}</Typography.Title>
</Row>
<Row gutter={4}>
<Col span={16}>
<Row gutter={[32, 32]}>
<Col {...colSpan}>
<JobsCreateOwnerInfoSearchComponent
loading={loading}
owners={owners}
/>
</Col>
<Col span={8}>
<Col {...colSpan}>
<JobsCreateOwnerInfoNewComponent />
</Col>
</Row>