fix: provder disabled click in k8s

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent 913f2f5077
commit c9c9401b0b
8 changed files with 31 additions and 412 deletions
@@ -34,7 +34,7 @@ const Title = styled.span`
interface ProviderCatalogProps {
onSelect?: (provider: string, item: any) => void;
cols?: number;
currentProvider?: ProviderType | string;
current?: ProviderType | string;
clickable?: boolean;
dataList: {
label: string;
@@ -52,7 +52,7 @@ const ProviderCatalog: React.FC<ProviderCatalogProps> = ({
cols = 3,
dataList,
clickable,
currentProvider
current
}) => {
const intl = useIntl();
@@ -80,7 +80,7 @@ const ProviderCatalog: React.FC<ProviderCatalogProps> = ({
height="80px"
key={action.key}
onClick={() => onSelect?.(action.key as string, action)}
active={currentProvider === action.key}
active={current === action.key}
disabled={action.disabled}
clickable={clickable}
header={