Skip to content

Commit 8394b7d

Browse files
committed
Simplify Freebuff live stat cards
1 parent 8f524e0 commit 8394b7d

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

freebuff/web/src/app/live/live-client.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,10 @@ function StatTile({
102102
icon: Icon,
103103
label,
104104
value,
105-
detail,
106105
}: {
107106
icon: LucideIcon
108107
label: string
109108
value: string
110-
detail: string
111109
}) {
112110
return (
113111
<div className="rounded-lg border border-white/10 bg-white/[0.04] p-4 shadow-[inset_0_1px_0_rgba(255,255,255,0.05)]">
@@ -120,7 +118,6 @@ function StatTile({
120118
<div className="mt-3 min-h-10 text-3xl font-serif leading-none text-white">
121119
{value}
122120
</div>
123-
<div className="mt-2 text-sm text-white/50">{detail}</div>
124121
</div>
125122
)
126123
}
@@ -382,14 +379,8 @@ export default function LiveClient({
382379
icon={Globe2}
383380
label="Live users"
384381
value={stats.totalLiveUsers.toLocaleString()}
385-
detail="Active sessions now"
386-
/>
387-
<StatTile
388-
icon={Clock3}
389-
label="Top country"
390-
value={topCountry}
391-
detail="By active users"
392382
/>
383+
<StatTile icon={Clock3} label="Top country" value={topCountry} />
393384
</div>
394385
</div>
395386
</section>

0 commit comments

Comments
 (0)