From 79a1f68b4d2ce17621bc7175c469879a07be77b6 Mon Sep 17 00:00:00 2001 From: Jacob Shandling <61553566+jacobshandling@users.noreply.github.com> Date: Fri, 31 Mar 2023 13:52:33 -0700 Subject: [PATCH] Delete unused component (#10892) --- .../software/components/EmptySoftware.tsx | 68 ------------------- 1 file changed, 68 deletions(-) delete mode 100644 frontend/pages/software/components/EmptySoftware.tsx diff --git a/frontend/pages/software/components/EmptySoftware.tsx b/frontend/pages/software/components/EmptySoftware.tsx deleted file mode 100644 index 4cd6b3dafe..0000000000 --- a/frontend/pages/software/components/EmptySoftware.tsx +++ /dev/null @@ -1,68 +0,0 @@ -// This component is used on ManageSoftwarePage.tsx and DashboardPage.tsx > Software.tsx card - -import React from "react"; - -import CustomLink from "components/CustomLink"; - -const baseClass = "manage-software-page"; - -type IEmptySoftwareProps = { - message: "disabled" | "collecting" | "default" | ""; - noSandboxHosts?: boolean; -}; - -const EmptySoftware = ({ - message, - noSandboxHosts, -}: IEmptySoftwareProps): JSX.Element => { - switch (message) { - case "disabled": { - return ( -
-
-

Software inventory is disabled.

-

- Check out the Fleet documentation on{" "} - -

-
-
- ); - } - case "collecting": { - return ( -
-
-

- {noSandboxHosts - ? "Fleet begins collecting software inventory after a host is enrolled" - : "Fleet is collecting software inventory"} -

-

- Try again in about{" "} - {noSandboxHosts - ? "15 minutes after host enrollment." - : "1 hour as the system catches up."} -

-
-
- ); - } - default: { - return ( -
-
-

No software matches the current search criteria.

-

Try again in about 1 hour as the system catches up.

-
-
- ); - } - } -}; - -export default EmptySoftware;