chore: remove flags from location text on homepage and history
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-12
@@ -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<string, string> = {
|
||||
'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() {
|
||||
<div className="flex justify-between items-start mb-3.5">
|
||||
<div>
|
||||
<div className="font-['Bebas_Neue'] text-[34px] text-[#22c55e] leading-none">{t.year}</div>
|
||||
<div className="text-xs text-[#2a5c35] mt-0.5 flex items-center gap-1.5">
|
||||
<span className={`fi fi-${HostIso(t.host)} rounded-sm text-sm inline-block`} />
|
||||
<div className="text-xs text-[#2a5c35] mt-0.5">
|
||||
{t.host}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user