fix: repair legacy round-robin schedules
This commit is contained in:
1 parent
658592973e
commit
7399968fe8
3 files changed
+116
-14
No files matched your search
@@ -1468,11 +1468,14 @@ function TournamentCodeList({ slots }: { slots: TournamentCodeSlotView[] }) {
|
||||
}
|
||||
|
||||
function renderSlot(slot: TournamentCodeSlotView) {
|
||||
const shouldShowTeamLabel =
|
||||
Boolean(slot.roundNumber) || slot.teamAIndex > 1 || slot.teamBIndex > 2;
|
||||
|
||||
return (
|
||||
<div key={slot.gameNumber} className="flex items-start gap-2">
|
||||
<span className="text-xs font-bold text-base-content/40 w-20 shrink-0 pt-1.5">
|
||||
{slot.gameNumber}경기
|
||||
{(slot.teamAIndex > 1 || slot.teamBIndex > 2) && (
|
||||
{shouldShowTeamLabel && (
|
||||
<span className="block text-xs font-normal text-base-content/25">
|
||||
{teamIndexLabel(slot.teamAIndex)} vs{" "}
|
||||
{teamIndexLabel(slot.teamBIndex)}
|
||||
|
||||
Reference in new issue
Block a user