diff --git a/apps/web/app/dashboard/page.tsx b/apps/web/app/dashboard/page.tsx index 03371ae..ea4baac 100644 --- a/apps/web/app/dashboard/page.tsx +++ b/apps/web/app/dashboard/page.tsx @@ -2,6 +2,7 @@ import { useQuery } from "@tanstack/react-query"; import { Button, Card, Spinner } from "@heroui/react"; +import Link from "next/link"; import { Thunderbolt, PlugConnection, @@ -10,6 +11,7 @@ import { TagDollar, Person, ArrowRotateRight, + TriangleExclamation, } from "@gravity-ui/icons"; import { useSession } from "@/lib/auth-client"; import { api, type Stats, type UserStats, type Transaction, type ChargePoint } from "@/lib/api"; @@ -87,7 +89,7 @@ function StatCard({ function Panel({ title, children }: { title: string; children: React.ReactNode }) { return ( -
{title}
- {cp.chargePointIdentifier} -
-- {cp.chargePointModel ?? cp.chargePointVendor ?? "未知型号"} -
-{chargingCount} 充电中
- )} -{online ? `${availableCount} 可用` : "离线"}
-+ {cp.chargePointIdentifier} +
++ {cp.chargePointModel ?? cp.chargePointVendor ?? "未知型号"} +
+实时运营状态