release/86 #2

Merged
dahyeon merged 108 commits from release/86 into main 2026-07-15 08:56:05 +00:00
Showing only changes of commit 2d1c33f1e9 - Show all commits
+10 -30
View File
@@ -2585,14 +2585,6 @@ function formatDoubleEliminationMatchState(
return "대기"; return "대기";
} }
function formatDoubleEliminationCompletionType(
completedBy?: ApiDoubleEliminationBracketMatch["completedBy"],
) {
if (completedBy === "walkover") return "부전승";
if (completedBy === "riot-result") return "결과 반영";
return null;
}
function DoubleEliminationBracketSection({ function DoubleEliminationBracketSection({
match, match,
canManage, canManage,
@@ -2987,9 +2979,6 @@ function DoubleEliminationBracketCard({
canManage && canManage &&
bracketMatch.state === "ready" && bracketMatch.state === "ready" &&
Boolean(bracketMatch.teamAIndex && bracketMatch.teamBIndex); Boolean(bracketMatch.teamAIndex && bracketMatch.teamBIndex);
const completionTypeLabel = formatDoubleEliminationCompletionType(
bracketMatch.completedBy,
);
return ( return (
<div <div
@@ -3069,25 +3058,16 @@ function DoubleEliminationBracketCard({
)} )}
/> />
{(completionTypeLabel || canManage) && ( {canManage && (
<div className="mt-auto flex min-w-0 items-center justify-between gap-1"> <div className="mt-auto flex min-w-0 justify-end">
<div className="flex min-w-0 items-center gap-1"> <DoubleEliminationBracketCardActions
{completionTypeLabel && ( bracketMatch={bracketMatch}
<span className="shrink-0 border border-accent/25 bg-accent/10 px-1 text-xs font-black text-accent-content"> canApplyWalkover={canApplyWalkover}
{completionTypeLabel} busy={busy}
</span> onWalkover={onWalkover}
)} onCancelWalkover={onCancelWalkover}
</div> onCancelResult={onCancelResult}
{canManage && ( />
<DoubleEliminationBracketCardActions
bracketMatch={bracketMatch}
canApplyWalkover={canApplyWalkover}
busy={busy}
onWalkover={onWalkover}
onCancelWalkover={onCancelWalkover}
onCancelResult={onCancelResult}
/>
)}
</div> </div>
)} )}
</div> </div>