Skip to content
Snippets Groups Projects
Commit c0ac218a authored by Johanna Szepanski's avatar Johanna Szepanski
Browse files

Removed no longer used components

parent e9e1b8ee
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!548CE-3202-batch-jobs-in-details-view
import { IconBadge } from "@ess-ics/ce-ui-common";
import { JobTypeIcon } from "./JobIcons";
import { InternalLink } from "@ess-ics/ce-ui-common";
export function JobBadge({ operation }) {
const linkToIoc = (
<InternalLink
to={`/iocs/${operation.iocId}`}
label={`IOC details, ${operation.iocName}`}
>
{operation.iocName}
</InternalLink>
);
return (
<IconBadge
icon={
<>
<JobTypeIcon
type={operation.type}
colorStyle="black"
/>
</>
}
title={linkToIoc}
subtitle={operation.host.fqdn || "---"}
/>
);
}
import {
DeploymentStatusIcon,
DeploymentTypeIcon
} from "../deployments/DeploymentIcons";
import { CommandTypeIcon } from "../common/Status";
import { Box, Stack, Typography } from "@mui/material";
import {
PlayCircleFilled,
......@@ -11,10 +6,6 @@ import {
RemoveCircleOutline
} from "@mui/icons-material";
export function JobStatusIcon({ status }) {
return <DeploymentStatusIcon status={status} />;
}
const SemiCircle = () => {
return (
<Box
......@@ -122,21 +113,3 @@ export const JobTypeIconText = ({ type, iconProps, fontProps }) => {
</Stack>
);
};
// TODO: This will be deleted in later MR
export function JobTypeIcon({ type, colorStyle, labelPosition }) {
const icon = ["START", "STOP"].includes(type) ? (
<CommandTypeIcon
type={type}
colorStyle={colorStyle}
labelPosition={labelPosition}
/>
) : (
<DeploymentTypeIcon
type={type}
labelPosition={labelPosition}
/>
);
return icon;
}
import { JobBadge } from "./JobBadge";
import { JobDetails } from "./JobDetails";
import { JobStatusIcon, JobTypeIcon } from "./JobIcons";
import { JobTable } from "./JobTable";
export { JobBadge, JobDetails, JobStatusIcon, JobTypeIcon, JobTable };
export { JobDetails, JobTable };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment