From 2862b65b3ad862e21cfc778c61b3c836da602ee6 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Wed, 29 Mar 2023 11:36:18 +0200 Subject: [PATCH] fix(ui): fix health status loading and paddings --- .../HealthStatus/HealthModal/Footer.tsx | 2 +- .../HealthStatus/HealthModal/HealthModal.tsx | 99 +++++++++---------- .../Header/HealthStatus/HealthStatus.tsx | 2 +- .../Header/HealthStatus/HealthWidget.tsx | 8 +- .../Header/HealthStatus/ServiceCategory.tsx | 7 +- .../SubserviceHealth/SubserviceHealth.tsx | 6 +- 6 files changed, 58 insertions(+), 66 deletions(-) diff --git a/frontend/app/components/Header/HealthStatus/HealthModal/Footer.tsx b/frontend/app/components/Header/HealthStatus/HealthModal/Footer.tsx index 0daf5cf56..4aace8e06 100644 --- a/frontend/app/components/Header/HealthStatus/HealthModal/Footer.tsx +++ b/frontend/app/components/Header/HealthStatus/HealthModal/Footer.tsx @@ -6,7 +6,7 @@ function Footer({ isSetup }: { isSetup?: boolean }) { return (
Installation Status
-
-
- {isLoading ? ( - null} name={"Loading health status"} isLoading /> - ) - : Object.keys(healthResponse.healthMap).map((service) => ( - - setSelectedService(service)} - healthOk={healthResponse.healthMap[service].healthOk} - name={healthResponse.healthMap[service].name} - isSelectable - isSelected={selectedService === service} - /> - - ))} -
-
- {isLoading ? ( -
- -
- ) : selectedService ? ( - - ) : - } -
-
- {isSetup ? ( -
- + {isLoading ? null : selectedService ? ( + + ) : + } +
- ) : null} + {isSetup ? ( +
+ +
+ ) : null} +