fix: rename model

This commit is contained in:
hamster1963
2024-11-28 14:49:38 +08:00
parent ee9419cccc
commit 5f2e9fe38a
10 changed files with 28 additions and 107 deletions

View File

@@ -2,12 +2,12 @@ import ServerFlag from "@/components/ServerFlag";
import ServerUsageBar from "@/components/ServerUsageBar";
import { cn, formatNezhaInfo } from "@/lib/utils";
import { NezhaAPI } from "@/types/nezha-api";
import { NezhaServer } from "@/types/nezha-api";
import { Card } from "./ui/card";
import { useNavigate } from "react-router-dom";
import { useTranslation } from "react-i18next";
export default function ServerCard({ serverInfo }: { serverInfo: NezhaAPI }) {
export default function ServerCard({ serverInfo }: { serverInfo: NezhaServer }) {
const { t } = useTranslation();
const navigate = useNavigate();
const { name, country_code, online, cpu, up, down, mem, stg } =