feat(ssr): add tooltip to youtube button
All checks were successful
deploy / deploy (push) Successful in 1m12s

This commit is contained in:
Lee 2023-11-16 10:21:08 +00:00
parent 925e423955
commit 65e8df76a2

@ -150,6 +150,8 @@ export default function Score({
<CopyBsrButton mapId={mapId} /> <CopyBsrButton mapId={mapId} />
</div> </div>
<div className="flex gap-1"> <div className="flex gap-1">
<Tooltip>
<TooltipTrigger>
<Link <Link
href={`${songNameToYouTubeLink( href={`${songNameToYouTubeLink(
leaderboard.songName, leaderboard.songName,
@ -165,6 +167,11 @@ export default function Score({
<YouTubeLogo size={20} /> <YouTubeLogo size={20} />
</Button> </Button>
</Link> </Link>
</TooltipTrigger>
<TooltipContent>
<p>Click to view the song on YouTube</p>
</TooltipContent>
</Tooltip>
</div> </div>
</> </>
)} )}