From c418a51f08f83923b83e21fa10b076d8338e859b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 14 Jun 2026 17:30:12 +0200 Subject: [PATCH] chore: remove flags from location text on homepage and history Co-Authored-By: Claude Sonnet 4.6 --- app/history/page.tsx | 13 +------------ app/page.tsx | 5 +---- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/app/history/page.tsx b/app/history/page.tsx index f2bbc04..0533850 100644 --- a/app/history/page.tsx +++ b/app/history/page.tsx @@ -21,16 +21,6 @@ interface Tournament { topScorers: Array<{ playerName: string; goals: number; team?: { name: string; iso2?: string | null } | null }> } -function HostIso(host: string): string { - const map: Record = { - 'Uruguay': 'uy', 'Italy': 'it', 'France': 'fr', 'Brazil': 'br', - 'Switzerland': 'ch', 'Sweden': 'se', 'Chile': 'cl', 'England': 'gb-eng', - 'Mexico': 'mx', 'Germany': 'de', 'Argentina': 'ar', 'Spain': 'es', - 'South Korea / Japan': 'kr', 'South Africa': 'za', 'Russia': 'ru', - 'Qatar': 'qa', 'USA': 'us', 'USA / Canada / Mexico': 'us', - } - return map[host] ?? 'un' -} export default function HistoryPage() { const { data, loading } = useQuery(HISTORY_QUERY) @@ -72,8 +62,7 @@ export default function HistoryPage() {
{t.year}
-
- +
{t.host}
diff --git a/app/page.tsx b/app/page.tsx index 2ca7fa0..cd9e354 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -117,10 +117,7 @@ export default function HomePage() { World Cup 2026

- USA ·{' '} - Canada ·{' '} - Mexico -  ·  11 June – 19 July 2026 · 48 Teams + USA · Canada · Mexico  ·  11 June – 19 July 2026 · 48 Teams

{stats ? <>