chore: format code
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user