diff --git a/bun.lockb b/bun.lockb index 1afa12c..495ab1b 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 3b17f66..95a75a8 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,9 @@ "@radix-ui/react-separator": "^1.1.1", "@radix-ui/react-slot": "^1.1.1", "@radix-ui/react-switch": "^1.1.2", - "@tanstack/react-query": "^5.65.1", - "@tanstack/react-query-devtools": "^5.65.1", + "@radix-ui/react-tooltip": "^1.1.7", + "@tanstack/react-query": "^5.66.0", + "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-table": "^8.20.6", "@trivago/prettier-plugin-sort-imports": "^5.2.2", "@types/d3-geo": "^3.1.0", @@ -46,15 +47,15 @@ "react": "^19.0.0", "react-dom": "^19.0.0", "react-i18next": "^15.4.0", - "react-router-dom": "^7.1.3", + "react-router-dom": "^7.1.5", "recharts": "^2.15.1", - "sonner": "^1.7.3", + "sonner": "^1.7.4", "tailwind-merge": "^2.6.0", "tailwindcss-animate": "^1.0.7" }, "devDependencies": { "@eslint/js": "^9.19.0", - "@types/node": "^22.12.0", + "@types/node": "^22.13.0", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "@vitejs/plugin-react-swc": "^3.7.2", diff --git a/src/components/ServerDetailOverview.tsx b/src/components/ServerDetailOverview.tsx index b1ccc85..8f3d536 100644 --- a/src/components/ServerDetailOverview.tsx +++ b/src/components/ServerDetailOverview.tsx @@ -14,6 +14,7 @@ import { useTranslation } from "react-i18next" import { useNavigate } from "react-router-dom" import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./ui/accordion" +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./ui/tooltip" export default function ServerDetailOverview({ server_id }: { server_id: string }) { const { t } = useTranslation() @@ -165,17 +166,26 @@ export default function ServerDetailOverview({ server_id }: { server_id: string ) : null} {country_code && ( - - - - {t("serverDetail.region")} - - {countries.getName(country_code?.toUpperCase(), "en")} - {country_code && } - - - - + + + + + + + {t("serverDetail.region")} + + {country_code?.toUpperCase()} + {country_code && } + + + + + + + {countries.getName(country_code?.toUpperCase(), "en")} + + + )} diff --git a/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsx new file mode 100644 index 0000000..79c7188 --- /dev/null +++ b/src/components/ui/tooltip.tsx @@ -0,0 +1,27 @@ +import { cn } from "@/lib/utils" +import * as TooltipPrimitive from "@radix-ui/react-tooltip" +import * as React from "react" + +const TooltipProvider = TooltipPrimitive.Provider + +const Tooltip = TooltipPrimitive.Root + +const TooltipTrigger = TooltipPrimitive.Trigger + +const TooltipContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, sideOffset = 4, ...props }, ref) => ( + +)) +TooltipContent.displayName = TooltipPrimitive.Content.displayName + +export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
{t("serverDetail.region")}
{countries.getName(country_code?.toUpperCase(), "en")}