From d9322cc17d7cc157116e8970112537963ea8e4d6 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Fri, 26 Dec 2025 10:13:17 +0700 Subject: [PATCH] refactor(FE-438): Make left legend skeleton DRY and widen gaps --- .../skeleton/UniformityBarChartSkeleton.tsx | 34 ++++++++----------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/src/components/pages/uniformity/skeleton/UniformityBarChartSkeleton.tsx b/src/components/pages/uniformity/skeleton/UniformityBarChartSkeleton.tsx index 4983c84e..d0a950b5 100644 --- a/src/components/pages/uniformity/skeleton/UniformityBarChartSkeleton.tsx +++ b/src/components/pages/uniformity/skeleton/UniformityBarChartSkeleton.tsx @@ -4,21 +4,17 @@ import { Icon } from '@iconify/react'; const LeftLegend = () => { return ( <> -
+
-
-
-
-
-
-
-
-
-
-
-
-
+ {[...Array(5)].map((_, index) => ( +
+
+
+ ))}
); @@ -37,8 +33,8 @@ const ChartArea = () => { return ( <> -
-
+
+
{[...Array(5)].map((_, index) => (
{ ))}
-
+
{ranges.map((range) => (
))}
-
+
@@ -92,7 +88,7 @@ const EmptyState = () => { const UniformityBarChartSkeleton = () => { return (
-
+