IO-884 Add special coverage policy indicators.

This commit is contained in:
Patrick Fic
2021-04-12 15:22:01 -07:00
parent fbb170491b
commit c216295e66
8 changed files with 86 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
import { Card, Col, Row, Tag } from "antd";
import { Card, Col, Row, Space, Tag } from "antd";
import { WarningFilled } from "@ant-design/icons";
import React, { useMemo } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
@@ -85,6 +86,14 @@ export function JobsDetailHeader({ job, bodyshop, disabled }) {
<ProductionListColumnProductionNote record={job} />
</DataLabel>
)}
{job.special_coverage_policy && (
<Tag color="tomato">
<Space>
<WarningFilled />
<span>{t("jobs.labels.specialcoveragepolicy")}</span>
</Space>
</Tag>
)}
</div>
</Card>
</Col>