- {rows.map((row) => (
-
-
-
- {row.label}
-
-
- {row.value}
-
-
- ))}
+ {isLoading
+ ? [28, 20, 36, 24, 32].map((w, i) => (
+
+ ))
+ : rows.map((row) => (
+
+
+
+ {row.label}
+
+
+ {row.value}
+
+
+ ))}
);
diff --git a/frontend/src/components/dashboard/DashboardMetricCard.tsx b/frontend/src/components/dashboard/DashboardMetricCard.tsx
index e9b78a6..bb595e1 100644
--- a/frontend/src/components/dashboard/DashboardMetricCard.tsx
+++ b/frontend/src/components/dashboard/DashboardMetricCard.tsx
@@ -9,6 +9,7 @@ interface DashboardMetricCardProps {
infoText?: string;
icon: ReactNode;
tone: MetricToneKey;
+ isLoading?: boolean;
}
/**
@@ -22,6 +23,7 @@ export function DashboardMetricCard({
infoText,
icon,
tone,
+ isLoading = false,
}: DashboardMetricCardProps) {
return (