Further refinement on jobs detail screen on header. BOD-155

This commit is contained in:
Patrick Fic
2020-06-11 16:29:55 -07:00
parent 4e5c305f95
commit 230b45847a
18 changed files with 319 additions and 305 deletions

View File

@@ -2,7 +2,7 @@ import { Tag, Popover } from "antd";
import React from "react";
import Barcode from "react-barcode";
import { useTranslation } from "react-i18next";
export default function BarcodePopupComponent({ value }) {
export default function BarcodePopupComponent({ value, children }) {
const { t } = useTranslation();
return (
<div>
@@ -10,12 +10,11 @@ export default function BarcodePopupComponent({ value }) {
content={
<Barcode
value={value}
background="transparent"
background='transparent'
displayValue={false}
/>
}
>
<Tag>{t("general.labels.barcode")}</Tag>
}>
{children ? children : <Tag>{t("general.labels.barcode")}</Tag>}
</Popover>
</div>
);