chore: format code

This commit is contained in:
2026-03-11 00:18:12 +08:00
parent a3b9134299
commit 4d0c429d5f
12 changed files with 334 additions and 295 deletions

View File

@@ -118,9 +118,7 @@ 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"}`}
/>
<Thunderbolt 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">
@@ -174,9 +172,7 @@ function ChargePointStatus({ cps }: { cps: ChargePoint[] }) {
{chargingCount > 0 && (
<p className="text-xs font-medium text-warning">{chargingCount} </p>
)}
<p className="text-xs text-muted">
{online ? `${availableCount} 可用` : "离线"}
</p>
<p className="text-xs text-muted">{online ? `${availableCount} 可用` : "离线"}</p>
</div>
</li>
);
@@ -283,9 +279,7 @@ export default function DashboardPage() {
footer={
<>
<StatusDot color="success" />
<span className="font-medium text-success">
{s?.onlineChargePoints ?? 0} 线
</span>
<span className="font-medium text-success">{s?.onlineChargePoints ?? 0} 线</span>
<span className="text-border">·</span>
<span>{offlineCount} 线</span>
</>
@@ -383,4 +377,3 @@ export default function DashboardPage() {
</div>
);
}