staion
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { useMemo, useState, useEffect } from "react";
|
||||
import { Match, Team } from "@/lib/types";
|
||||
import { STADIUMS, MATCH_STADIUMS } from "@/lib/stadiums";
|
||||
import Flag from "./Flag";
|
||||
|
||||
function fmtShortDate(iso: string): string {
|
||||
@@ -100,6 +101,8 @@ export default function KoFixtures({ teams, matches }: { teams: Team[]; matches:
|
||||
SF: "Halbfinale", "3RD": "Platz 3", FINAL: "Finale",
|
||||
};
|
||||
|
||||
const city = STADIUMS[MATCH_STADIUMS[m.matchNumber]]?.city;
|
||||
|
||||
return (
|
||||
<div
|
||||
key={m.id}
|
||||
@@ -114,7 +117,10 @@ export default function KoFixtures({ teams, matches }: { teams: Team[]; matches:
|
||||
marginBottom: 8, fontSize: 11,
|
||||
fontFamily: "var(--font-mono)", color: "var(--ink-faint)",
|
||||
}}>
|
||||
<span>{stageMap[m.stage] ?? m.stage} · Spiel {m.matchNumber || "—"}</span>
|
||||
<span>
|
||||
{stageMap[m.stage] ?? m.stage} · Spiel {m.matchNumber || "—"}
|
||||
{city ? ` · ${city}` : ""}
|
||||
</span>
|
||||
<span style={{ color: live ? "var(--turf)" : undefined, fontWeight: live ? 700 : undefined }}>
|
||||
{statusLabel(m)}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user