From 54017517f9ddc54e02e5fa6c4a18c6fada86beb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linn=C3=A9a=20Ivansson?= Date: Mon, 21 Nov 2022 14:49:34 +0100 Subject: [PATCH] Remove the no longer used ErrorEmptyState component. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Linnéa Ivansson --- .../ErrorReporting/ErrorReporting.tsx | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx b/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx index 3bb1a81b1d..b87fa3b104 100644 --- a/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx +++ b/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx @@ -91,31 +91,6 @@ const sortBySeverity = (a: DetectedError, b: DetectedError) => { return 0; }; -export const ErrorEmptyState = () => { - return ( - - - - Nice! There are no errors to report! - - - - EmptyState - - - ); -}; - export const ErrorReporting = ({ detectedErrors }: ErrorReportingProps) => { const errors = Array.from(detectedErrors.values()) .flat() @@ -123,7 +98,7 @@ export const ErrorReporting = ({ detectedErrors }: ErrorReportingProps) => { return ( <> - {errors.length !== 0 && + {errors.length !== 0 &&