refactor(web): simplify auction tier chart

This commit is contained in:
dahyeon committed 2026-06-08 01:02:52 -07:00
1 parent ebca348723
commit 181beb85e5
2 files changed
+94 -25

No files matched your search

+15 -13
View File
@@ -543,6 +543,21 @@ function PlayerSpotlight({
</div>
</div>
{tierHistory.length > 0 && (
<Suspense
fallback={
<div className="h-[180px] border-b border-base-content/8 bg-base-100" />
}
>
<TierHistoryChart
entries={tierHistory}
className="border-b border-base-content/8 bg-base-100 overflow-hidden"
summaryVariant="inline"
height={180}
/>
</Suspense>
)}
<div className="grid grid-cols-2 divide-x divide-base-content/5">
<div className="p-4">
<h4 className="text-[10px] font-bold uppercase tracking-wider text-base-content/30 mb-2.5">
@@ -589,19 +604,6 @@ function PlayerSpotlight({
<RecentSoloStats player={player} />
</div>
{tierHistory.length > 0 && (
<Suspense
fallback={
<div className="h-[180px] border-t border-base-content/8 bg-base-100" />
}
>
<TierHistoryChart
entries={tierHistory}
className="border-t border-base-content/8 bg-base-100 overflow-hidden"
/>
</Suspense>
)}
{(state.phase === 'bidding' || state.phase === 'sold') && (
<div className="border-t border-base-content/8 px-4 py-3 bg-base-content/[0.02]">
<div className="flex items-center justify-between">