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