feat(sidebar): update icons for navigation and charge items
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
||||
type ChartRange,
|
||||
type ChartDataPoint,
|
||||
} from "@/lib/api";
|
||||
import { BanknoteArrowDown, EvCharger, Plug, Users } from "lucide-react";
|
||||
|
||||
// ── Helpers ────────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -259,7 +260,7 @@ function TrendChart() {
|
||||
showXAxis={true}
|
||||
curveType="monotone"
|
||||
showAnimation
|
||||
className="h-56"
|
||||
className="h-56 text-sm"
|
||||
/>
|
||||
)}
|
||||
{/* Legend */}
|
||||
@@ -310,7 +311,9 @@ function RecentTransactions({ txns }: { txns: Transaction[] }) {
|
||||
<span
|
||||
className={`flex size-7 shrink-0 items-center justify-center rounded-full ${active ? "bg-warning-soft" : "bg-success/10"}`}
|
||||
>
|
||||
<Thunderbolt className={`size-3.5 ${active ? "text-warning" : "text-success"}`} />
|
||||
<BanknoteArrowDown
|
||||
className={`size-3.5 ${active ? "text-warning" : "text-success"}`}
|
||||
/>
|
||||
</span>
|
||||
<div className="min-w-0 flex-1">
|
||||
<p className="truncate text-sm font-medium text-foreground">
|
||||
@@ -404,7 +407,7 @@ function ChargePointStatus({ cps }: { cps: ChargePoint[] }) {
|
||||
</div>
|
||||
)}
|
||||
<div className="flex items-center gap-1">
|
||||
<PlugConnection className="size-3 text-accent" />
|
||||
<Plug className="size-3 text-accent" />
|
||||
<span className="text-muted">{availableCount}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -531,7 +534,7 @@ export default function DashboardPage() {
|
||||
<StatCard
|
||||
title="充电桩总数"
|
||||
value={s?.totalChargePoints ?? "—"}
|
||||
icon={PlugConnection}
|
||||
icon={EvCharger}
|
||||
color="default"
|
||||
footer={
|
||||
<>
|
||||
@@ -552,7 +555,7 @@ export default function DashboardPage() {
|
||||
<StatCard
|
||||
title="注册用户"
|
||||
value={s?.totalUsers ?? "—"}
|
||||
icon={Person}
|
||||
icon={Users}
|
||||
color="default"
|
||||
footer={<span>系统用户总数</span>}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user