chore: 同步前端组件更新 (K8s/Agent/Monitor 相关)
This commit is contained in:
1 parent
09d3f5b6e8
commit
0535f30c87
20 files changed
+42
-5
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { useState, useEffect, useRef, useCallback } from 'react';
|
||||
import type { ComponentType } from 'react';
|
||||
import { toast } from 'sonner';
|
||||
import { agentApi } from '@/api';
|
||||
import { AgentWizard } from './AgentWizard';
|
||||
@@ -385,7 +386,7 @@ export function AgentMonitor() {
|
||||
}
|
||||
|
||||
// ============ 指标条子组件 ============
|
||||
function MetricBar({ icon: Icon, label, value }: { icon: any; label: string; value: number }) {
|
||||
function MetricBar({ icon: Icon, label, value }: { icon: ComponentType<{ className?: string }>; label: string; value: number }) {
|
||||
return (
|
||||
<div className="flex items-center gap-2">
|
||||
<Icon className="h-3.5 w-3.5 text-slate-500 shrink-0" />
|
||||
|
||||
Reference in new issue
Block a user