From 1abb78719b621633fb324d7ec02465e4796b0afc Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 27 Oct 2023 11:29:49 +0100 Subject: [PATCH] added hover text to country --- src/components/player/PlayerInfo.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/player/PlayerInfo.tsx b/src/components/player/PlayerInfo.tsx index 84712ce..6962dab 100644 --- a/src/components/player/PlayerInfo.tsx +++ b/src/components/player/PlayerInfo.tsx @@ -7,6 +7,7 @@ import { getAveragePp, getHighestPpPlay, } from "@/utils/scoresaber/scores"; +import { normalizedRegionName } from "@/utils/utils"; import { GlobeAsiaAustraliaIcon, HomeIcon, @@ -183,6 +184,9 @@ export default function PlayerInfo({ playerData }: PlayerInfoProps) { href={`/ranking/country/${playerData.country}/${Math.round( playerData.countryRank / 50, )}`} + title={`${playerData.name} is from ${normalizedRegionName( + playerData.country, + )}`} >