fix: hide bracket completion badges

This commit is contained in:
dahyeon committed 2026-07-07 18:21:59 -07:00
1 parent 03358cab4f
commit 2d1c33f1e9
1 file changed
+1 -21
+1 -21
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,16 +3058,8 @@ function DoubleEliminationBracketCard({
)} )}
/> />
{(completionTypeLabel || canManage) && (
<div className="mt-auto flex min-w-0 items-center justify-between gap-1">
<div className="flex min-w-0 items-center gap-1">
{completionTypeLabel && (
<span className="shrink-0 border border-accent/25 bg-accent/10 px-1 text-xs font-black text-accent-content">
{completionTypeLabel}
</span>
)}
</div>
{canManage && ( {canManage && (
<div className="mt-auto flex min-w-0 justify-end">
<DoubleEliminationBracketCardActions <DoubleEliminationBracketCardActions
bracketMatch={bracketMatch} bracketMatch={bracketMatch}
canApplyWalkover={canApplyWalkover} canApplyWalkover={canApplyWalkover}
@@ -3087,7 +3068,6 @@ function DoubleEliminationBracketCard({
onCancelWalkover={onCancelWalkover} onCancelWalkover={onCancelWalkover}
onCancelResult={onCancelResult} onCancelResult={onCancelResult}
/> />
)}
</div> </div>
)} )}
</div> </div>