feat(frontend): biome

This commit is contained in:
ryan
2026-07-22 22:24:32 +08:00
parent f28aa6520e
commit 5b1e27d0a3
15 changed files with 338 additions and 176 deletions
@@ -97,7 +97,8 @@ function SparklineMetricCard({
formatter: (params: unknown) => {
const items = Array.isArray(params) ? params : [];
const item = items[0] as
{ axisValueLabel?: string; value?: number } | undefined;
| { axisValueLabel?: string; value?: number }
| undefined;
if (!item) return '';
const raw = typeof item.value === 'number' ? item.value : 0;
const formatted = valueFormatter