added hover text to country
All checks were successful
deploy / deploy (push) Successful in 53s

This commit is contained in:
Lee 2023-10-27 11:29:49 +01:00
parent 6f9869b1b1
commit 1abb78719b

@ -7,6 +7,7 @@ import {
getAveragePp, getAveragePp,
getHighestPpPlay, getHighestPpPlay,
} from "@/utils/scoresaber/scores"; } from "@/utils/scoresaber/scores";
import { normalizedRegionName } from "@/utils/utils";
import { import {
GlobeAsiaAustraliaIcon, GlobeAsiaAustraliaIcon,
HomeIcon, HomeIcon,
@ -183,6 +184,9 @@ export default function PlayerInfo({ playerData }: PlayerInfoProps) {
href={`/ranking/country/${playerData.country}/${Math.round( href={`/ranking/country/${playerData.country}/${Math.round(
playerData.countryRank / 50, playerData.countryRank / 50,
)}`} )}`}
title={`${playerData.name} is from ${normalizedRegionName(
playerData.country,
)}`}
> >
<ReactCountryFlag <ReactCountryFlag
countryCode={playerData.country} countryCode={playerData.country}