fix: header link

This commit is contained in:
hamster1963
2024-11-30 22:18:04 +08:00
parent 4e34bcf239
commit 48b2d1493a
14 changed files with 41 additions and 83 deletions

View File

@@ -8,14 +8,16 @@ import { useNavigate } from "react-router-dom";
import { useTranslation } from "react-i18next";
export default function ServerCard({
now,
serverInfo,
}: {
now: number;
serverInfo: NezhaServer;
}) {
const { t } = useTranslation();
const navigate = useNavigate();
const { name, country_code, online, cpu, up, down, mem, stg } =
formatNezhaInfo(serverInfo);
formatNezhaInfo(now, serverInfo);
const showFlag = true;