From c0ac218a1a911a9358c7b52f871fec6a0b567ec2 Mon Sep 17 00:00:00 2001
From: Johanna Szepanski <johanna.szepanski@softhouse.se>
Date: Thu, 26 Sep 2024 10:57:49 +0200
Subject: [PATCH] Removed no longer used components

---
 src/components/Job/JobBadge.js | 29 -----------------------------
 src/components/Job/JobIcons.js | 27 ---------------------------
 src/components/Job/index.js    |  4 +---
 3 files changed, 1 insertion(+), 59 deletions(-)
 delete mode 100644 src/components/Job/JobBadge.js

diff --git a/src/components/Job/JobBadge.js b/src/components/Job/JobBadge.js
deleted file mode 100644
index 0e0a5171..00000000
--- 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 4e9797a9..9767ffce 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 daf3a530..debfebfc 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 };
-- 
GitLab