release/86 #2
@@ -2585,14 +2585,6 @@ function formatDoubleEliminationMatchState(
|
||||
return "대기";
|
||||
}
|
||||
|
||||
function formatDoubleEliminationCompletionType(
|
||||
completedBy?: ApiDoubleEliminationBracketMatch["completedBy"],
|
||||
) {
|
||||
if (completedBy === "walkover") return "부전승";
|
||||
if (completedBy === "riot-result") return "결과 반영";
|
||||
return null;
|
||||
}
|
||||
|
||||
function DoubleEliminationBracketSection({
|
||||
match,
|
||||
canManage,
|
||||
@@ -2987,9 +2979,6 @@ function DoubleEliminationBracketCard({
|
||||
canManage &&
|
||||
bracketMatch.state === "ready" &&
|
||||
Boolean(bracketMatch.teamAIndex && bracketMatch.teamBIndex);
|
||||
const completionTypeLabel = formatDoubleEliminationCompletionType(
|
||||
bracketMatch.completedBy,
|
||||
);
|
||||
|
||||
return (
|
||||
<div
|
||||
@@ -3069,25 +3058,16 @@ 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 && (
|
||||
<DoubleEliminationBracketCardActions
|
||||
bracketMatch={bracketMatch}
|
||||
canApplyWalkover={canApplyWalkover}
|
||||
busy={busy}
|
||||
onWalkover={onWalkover}
|
||||
onCancelWalkover={onCancelWalkover}
|
||||
onCancelResult={onCancelResult}
|
||||
/>
|
||||
)}
|
||||
{canManage && (
|
||||
<div className="mt-auto flex min-w-0 justify-end">
|
||||
<DoubleEliminationBracketCardActions
|
||||
bracketMatch={bracketMatch}
|
||||
canApplyWalkover={canApplyWalkover}
|
||||
busy={busy}
|
||||
onWalkover={onWalkover}
|
||||
onCancelWalkover={onCancelWalkover}
|
||||
onCancelResult={onCancelResult}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user