diff --git a/src/components/Job/JobBadge.js b/src/components/Job/JobBadge.js deleted file mode 100644 index 0e0a517102778a2e2099f0860b95ecc46d216b8a..0000000000000000000000000000000000000000 --- a/src/components/Job/JobBadge.js +++ /dev/null @@ -1,29 +0,0 @@ -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 || "---"} - /> - ); -} diff --git a/src/components/Job/JobIcons.js b/src/components/Job/JobIcons.js index 4e9797a98c984485314af0848de009d595c51b6d..9767ffce1501c85585901c8a971964f2c0d9033a 100644 --- a/src/components/Job/JobIcons.js +++ b/src/components/Job/JobIcons.js @@ -1,8 +1,3 @@ -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; -} diff --git a/src/components/Job/index.js b/src/components/Job/index.js index daf3a5307075d013a9f1f103091aaae4d771a554..debfebfc78b753e67097fe3f985b825c151e30b2 100644 --- a/src/components/Job/index.js +++ b/src/components/Job/index.js @@ -1,6 +1,4 @@ -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 };