From e7088f6810a9ada7a5fcf7502a200ff095a2bfd0 Mon Sep 17 00:00:00 2001 From: Yuqiu Wang Date: Thu, 26 Aug 2021 12:38:14 -0500 Subject: [PATCH] Prometheus fix linter Signed-off-by: Yuqiu Wang --- client/src/components/nodeStatusChart.tsx | 1 + client/src/components/podCpuChart.tsx | 1 + client/src/components/podRamChart.tsx | 1 + client/src/components/podStatusChart.tsx | 29 +++++++++++------------ 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/client/src/components/nodeStatusChart.tsx b/client/src/components/nodeStatusChart.tsx index f2b8eca..b23bdb8 100644 --- a/client/src/components/nodeStatusChart.tsx +++ b/client/src/components/nodeStatusChart.tsx @@ -28,6 +28,7 @@ export default function NodeStatusChart({items}: {items?: Node[]}) { return (
+ {/* eslint-disable-next-line no-nested-ternary */} {prometheusData.length ? ( + {/* eslint-disable-next-line no-nested-ternary */} {prometheusData.length ? ( + {/* eslint-disable-next-line no-nested-ternary */} {prometheusData.length ? ( - { - prometheusData.length ? ( - - ) : items && available ? ( - - ) : ( - - ) - } + {/* eslint-disable-next-line no-nested-ternary */} + {prometheusData.length ? ( + + ) : items && available ? ( + + ) : ( + + )}
Pods
Ready vs Requested