feat: add competition series result history

This commit is contained in:
dahyeon committed 2026-07-13 09:39:26 +00:00
1 parent aa675199af
commit 3c60081ece
5 files changed
+503 -44

No files matched your search

@@ -5,6 +5,7 @@ import type {
TeamId,
} from "@lolympus/contracts";
import { Link } from "react-router";
import { CompetitionSeriesHistory } from "./CompetitionSeriesHistory";
import { DoubleEliminationBracket } from "./DoubleEliminationBracket";
import { createCompetitionBracketLayout } from "./competition-display-layout";
import { bracketRoundLabel } from "./double-elimination-bracket-layout";
@@ -81,28 +82,10 @@ export function CompetitionResults({
</p>
)}
{projection.games.length > 0 && (
<div className="border border-base-content/10 bg-base-content/[0.02] p-4">
<h3 className="text-xs font-bold uppercase tracking-wider text-base-content/40">
완료된 게임
</h3>
<ul className="mt-3 grid gap-2 sm:grid-cols-2 lg:grid-cols-3">
{projection.games.map((game) => (
<li
key={game.id}
className="flex items-center justify-between gap-3 border border-base-content/8 bg-base-100 px-3 py-2 text-xs"
>
<span className="text-base-content/45">
Game {game.displayNumber}
</span>
<span className="truncate font-semibold">
{teamById.get(game.winnerTeamId)?.name ?? "알 수 없는 팀"} 승
</span>
</li>
))}
</ul>
</div>
)}
<CompetitionSeriesHistory
projection={projection}
teamById={teamById}
/>
</section>
);
}