fix: add server ID to tooltip data and update MapTooltip component for navigation

This commit is contained in:
hamster1963
2025-12-28 15:01:27 +08:00
parent 4f9db466a3
commit 4d4c3f1639
3 changed files with 18 additions and 5 deletions
+2
View File
@@ -117,6 +117,7 @@ export function InteractiveMap({ countries, serverCounts, width, height, filtere
const countryServers = nezhaServerList
.filter((server: NezhaServer) => server.country_code?.toUpperCase() === countryCode)
.map((server: NezhaServer) => ({
id: server.id,
name: server.name,
status: formatNezhaInfo(now, server).online,
}))
@@ -155,6 +156,7 @@ export function InteractiveMap({ countries, serverCounts, width, height, filtere
const countryServers = nezhaServerList
.filter((server: NezhaServer) => server.country_code?.toUpperCase() === countryCode.toUpperCase())
.map((server: NezhaServer) => ({
id: server.id,
name: server.name,
status: formatNezhaInfo(now, server).online,
}))