Reformat all project files to use the prettier config file.
This commit is contained in:
@@ -1,23 +1,19 @@
|
||||
import React from "react";
|
||||
import {useTranslation} from "react-i18next";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import PrintCenterJobs from "../print-center-jobs/print-center-jobs.component";
|
||||
|
||||
export default function PrintCenterModalComponent({context}) {
|
||||
const {t} = useTranslation();
|
||||
const {type} = context;
|
||||
export default function PrintCenterModalComponent({ context }) {
|
||||
const { t } = useTranslation();
|
||||
const { type } = context;
|
||||
|
||||
let ModalContent;
|
||||
let ModalContent;
|
||||
|
||||
switch (type) {
|
||||
case "job":
|
||||
ModalContent = PrintCenterJobs;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return (
|
||||
<div>
|
||||
{ModalContent ? <ModalContent/> : t("printcenter.errors.nocontexttype")}
|
||||
</div>
|
||||
);
|
||||
switch (type) {
|
||||
case "job":
|
||||
ModalContent = PrintCenterJobs;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return <div>{ModalContent ? <ModalContent /> : t("printcenter.errors.nocontexttype")}</div>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user