Reformat all project files to use the prettier config file.
This commit is contained in:
@@ -4,19 +4,14 @@ import { useTranslation } from "react-i18next";
|
||||
import InstanceRenderManager from "../../utils/instanceRenderMgr";
|
||||
|
||||
export default function JobProfileDataWarning({ job }) {
|
||||
const { t } = useTranslation();
|
||||
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;
|
||||
let missingProfileInfo =
|
||||
Object.keys(job.cieca_pft).length === 0 ||
|
||||
Object.keys(job.cieca_pfl).length === 0 ||
|
||||
Object.keys(job.materials).length === 0;
|
||||
|
||||
if (missingProfileInfo && InstanceRenderManager({ rome: true }))
|
||||
return (
|
||||
<Alert
|
||||
type="error"
|
||||
message={t("jobs.labels.missingprofileinfo")}
|
||||
></Alert>
|
||||
);
|
||||
return null;
|
||||
if (missingProfileInfo && InstanceRenderManager({ rome: true }))
|
||||
return <Alert type="error" message={t("jobs.labels.missingprofileinfo")}></Alert>;
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user