diff --git a/apps/web/src/pages/MatchDetailPage.tsx b/apps/web/src/pages/MatchDetailPage.tsx index 9f0ab359..8afcab50 100644 --- a/apps/web/src/pages/MatchDetailPage.tsx +++ b/apps/web/src/pages/MatchDetailPage.tsx @@ -2450,18 +2450,6 @@ function formatDoubleEliminationMatchState( return "대기"; } -function formatDoubleEliminationCodeState(state?: string) { - if (!state) return null; - const labels: Record = { - reserved: "코드 발급", - used: "코드 사용", - released: "코드 해제", - expired: "코드 만료", - voided: "코드 폐기", - }; - return labels[state] ?? state; -} - function formatDoubleEliminationCompletionType( completedBy?: ApiDoubleEliminationBracketMatch["completedBy"], ) { @@ -2509,11 +2497,6 @@ function DoubleEliminationBracketSection({ layoutNodeById.has(connector.fromBracketMatchId) && layoutNodeById.has(connector.toBracketMatchId), ); - const codeByBracketMatchId = new Map( - match.tournamentCodes - .filter((slot) => slot.bracketMatchId) - .map((slot) => [slot.bracketMatchId as string, slot]), - ); const seriesByBracketMatchId = new Map( (match.result?.seriesResults ?? []) .filter((series) => series.bracketMatchId) @@ -2661,10 +2644,6 @@ function DoubleEliminationBracketSection({ seriesResult={seriesByBracketMatchId.get( bracketMatch.bracketMatchId, )} - codeState={ - codeByBracketMatchId.get(bracketMatch.bracketMatchId) - ?.state - } canManage={canManage} busy={busy} onWalkover={onWalkover} @@ -2758,7 +2737,6 @@ function DoubleEliminationBracketCard({ bracketMatch, seedNumberByTeamIndex, seriesResult, - codeState, canManage, busy, onWalkover, @@ -2770,7 +2748,6 @@ function DoubleEliminationBracketCard({ bracketMatch: ApiDoubleEliminationBracketMatch; seedNumberByTeamIndex: Map; seriesResult?: DoubleEliminationSeriesResult; - codeState?: string; canManage: boolean; busy: boolean; onWalkover: (bracketMatchId: string, winnerTeamIndex: number) => void; @@ -2782,7 +2759,6 @@ function DoubleEliminationBracketCard({ canManage && bracketMatch.state === "ready" && Boolean(bracketMatch.teamAIndex && bracketMatch.teamBIndex); - const codeStateLabel = formatDoubleEliminationCodeState(codeState); const completionTypeLabel = formatDoubleEliminationCompletionType( bracketMatch.completedBy, ); @@ -2865,11 +2841,6 @@ function DoubleEliminationBracketCard({ bracketMatch.bracketSide ] ?? bracketMatch.bracketSide} - {codeStateLabel && ( - - {codeStateLabel} - - )} {completionTypeLabel && ( {completionTypeLabel}