Further merge resolutions of RO into IO.

This commit is contained in:
Patrick Fic
2024-02-12 12:56:03 -08:00
parent 2fe4b113b2
commit 3687a644d6
11 changed files with 438 additions and 269 deletions

View File

@@ -1,18 +1,22 @@
import {Alert} from "antd";
import { Alert } from "antd";
import React from "react";
import {useTranslation} from "react-i18next";
import { useTranslation } from "react-i18next";
import InstanceRenderManager from "../../utils/instanceRenderMgr";
export default function JobProfileDataWarning({job}) {
const {t} = useTranslation();
export default function JobProfileDataWarning({ job }) {
const { t } = useTranslation();
let missingProfileInfo =
Object.keys(job.cieca_pft).length === 0 ||
Object.keys(job.cieca_pfl).length === 0 ||
Object.keys(job.materials).length === 0;
if (missingProfileInfo)
if (missingProfileInfo && InstanceRenderManager({ rome: true }))
return (
<Alert type="error" message={t("jobs.labels.missingprofileinfo")}></Alert>
<Alert
type="error"
message={t("jobs.labels.missingprofileinfo")}
></Alert>
);
return null;
}