diff --git a/src/components/reusable/StatsTiles.tsx b/src/components/reusable/StatsTiles.tsx index ea6a3eb..82e446d 100644 --- a/src/components/reusable/StatsTiles.tsx +++ b/src/components/reusable/StatsTiles.tsx @@ -1,60 +1,45 @@ -import { Card } from "./Card"; import type { TileItem } from "../../api/types"; export interface StatsTilesProps { tiles?: TileItem[]; } -const colors = [ - "from-blue-500 to-cyan-500", - "from-emerald-500 to-green-500", - "from-orange-500 to-amber-500", - "from-violet-500 to-fuchsia-500", - "from-pink-500 to-rose-500", - "from-indigo-500 to-blue-500", +const TONES = [ + "bg-sunrise-500", + "bg-emerald-500", + "bg-sky-500", + "bg-amber-500", + "bg-navy-600", + "bg-ruby-500", ]; export function StatsTiles({ tiles }: StatsTilesProps) { if (!tiles?.length) return null; return ( -
- {displayLabel} -
- -+ {displayLabel} +
++ {(tile.value as React.ReactNode) ?? "-"} +
+- {formatValue(row[primary.field_key])} -
- )} - {secondary.length > 0 && ( -- {f.output_label}: {formatValue(row[f.field_key])} -
- ))} -+ {formatValue(row[primary.field_key])} +
+ )} + {secondary.length > 0 && ( ++ {f.output_label}: {formatValue(row[f.field_key])} +
+ ))} +