From 1e7e4c66782b4de2dcc542d513061e473e33b13f Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Wed, 27 Nov 2024 20:54:17 +0800 Subject: [PATCH] fix: lint --- app/not-found.tsx | 1 - components/ServerCard.tsx | 2 -- 2 files changed, 3 deletions(-) diff --git a/app/not-found.tsx b/app/not-found.tsx index 7b51dd5..bcb89aa 100644 --- a/app/not-found.tsx +++ b/app/not-found.tsx @@ -1,5 +1,4 @@ import { useTranslations } from "next-intl"; -import Image from "next/image"; import Link from "next/link"; import Footer from "./(main)/footer"; diff --git a/components/ServerCard.tsx b/components/ServerCard.tsx index b76235f..8d89567 100644 --- a/components/ServerCard.tsx +++ b/components/ServerCard.tsx @@ -12,7 +12,6 @@ import { import { cn, formatBytes, formatNezhaInfo } from "@/lib/utils"; import { useTranslations } from "next-intl"; import Link from "next/link"; -import { useRouter } from "next/navigation"; export default function ServerCard({ serverInfo, @@ -20,7 +19,6 @@ export default function ServerCard({ serverInfo: NezhaAPISafe; }) { const t = useTranslations("ServerCard"); - const router = useRouter(); const { id, name, country_code, online, cpu, up, down, mem, stg, host } = formatNezhaInfo(serverInfo);