diff --git a/app/[locale]/(main)/header.tsx b/app/[locale]/(main)/header.tsx
index 15b3e82..523b2d1 100644
--- a/app/[locale]/(main)/header.tsx
+++ b/app/[locale]/(main)/header.tsx
@@ -6,7 +6,9 @@ import { Separator } from "@/components/ui/separator";
import getEnv from "@/lib/env-entry";
import { DateTime } from "luxon";
import { useTranslations } from "next-intl";
+import { useLocale } from "next-intl";
import Image from "next/image";
+import { useRouter } from "next/navigation";
import React, { useEffect, useRef, useState } from "react";
function Header() {
@@ -15,10 +17,18 @@ function Header() {
const customTitle = getEnv("NEXT_PUBLIC_CustomTitle");
const customDescription = getEnv("NEXT_PUBLIC_CustomDescription");
+ const router = useRouter();
+ const locale = useLocale();
+
return (
-
+ {
+ router.push(`/${locale}/`);
+ }}
+ className="flex cursor-pointer items-center text-base font-medium"
+ >
- {
- router.push(`/${locale}/detail/${id}`);
- }}
- >
-
- {showFlag ? : null}
-
-
- {name}
-
-
-
+
+
+
+
+
+ {showFlag ? : null}
+
+
+ {name}
+
+
+
+
+
+
+
{
router.push(`/${locale}/network/${id}`);
@@ -138,8 +142,9 @@ export default function ServerCard({
+
{name}
-
diff --git a/package.json b/package.json
index 07cdb31..03c1c2b 100644
--- a/package.json
+++ b/package.json
@@ -22,14 +22,14 @@
"@radix-ui/react-tooltip": "^1.1.3",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/luxon": "^3.4.2",
- "@typescript-eslint/eslint-plugin": "^8.8.1",
+ "@typescript-eslint/eslint-plugin": "^8.9.0",
"caniuse-lite": "^1.0.30001668",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"country-flag-icons": "^1.5.13",
"eslint-plugin-simple-import-sort": "^12.1.1",
"flag-icons": "^7.2.3",
- "framer-motion": "^11.11.8",
+ "framer-motion": "^11.11.9",
"lucide-react": "^0.451.0",
"luxon": "^3.5.0",
"next": "^14.2.15",
@@ -44,7 +44,7 @@
"recharts": "2.12.7",
"sharp": "^0.33.5",
"swr": "^2.2.6-beta.4",
- "tailwind-merge": "^2.5.3",
+ "tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
@@ -60,7 +60,7 @@
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
- "tailwindcss": "^3.4.13",
+ "tailwindcss": "^3.4.14",
"typescript": "^5.6.3"
}
}