diff --git a/apps/web/app/(app)/[emailAccountId]/stats/BarListCard.tsx b/apps/web/app/(app)/[emailAccountId]/stats/BarListCard.tsx index 5c0492de33..a9cc2b811e 100644 --- a/apps/web/app/(app)/[emailAccountId]/stats/BarListCard.tsx +++ b/apps/web/app/(app)/[emailAccountId]/stats/BarListCard.tsx @@ -32,21 +32,25 @@ export function BarListCard({ tabs, icon, title }: BarListCardProps) { const selectedTabData = tabs.find((d) => d.id === selected)?.data || []; return ( - - -
- ({ id: d.id, label: d.label }))} - onSelect={(id: string) => setSelected(id)} - selected={selected} - /> -
+ + +
+
+ ({ id: d.id, label: d.label }))} + onSelect={(id: string) => setSelected(id)} + selected={selected} + /> +
+
{icon} -

{title.toUpperCase()}

+

+ {title.toUpperCase()} +

- +
) : ( <> - -
-
+
+ +
+
+
- ); - })} -
+ +
+ {(["received", "sent", "read", "archived"] as const).map((key) => { + const chart = key as keyof typeof chartConfig; + const isActive = activeChart === chart; + return ( + + ); + })}
- +