mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
refactor(kube/namespaces): migrate table to react [EE-4694] (#10988)
This commit is contained in:
parent
da615afc92
commit
26bb028ace
18 changed files with 387 additions and 346 deletions
|
@ -12,20 +12,21 @@ export function StatusBadge({
|
|||
}: PropsWithChildren<
|
||||
{
|
||||
className?: string;
|
||||
color?: 'success' | 'danger' | 'warning' | 'default';
|
||||
color?: 'success' | 'danger' | 'warning' | 'info' | 'default';
|
||||
icon?: IconProps['icon'];
|
||||
} & AriaAttributes
|
||||
>) {
|
||||
return (
|
||||
<span
|
||||
className={clsx(
|
||||
'flex items-center gap-1 rounded',
|
||||
'inline-flex items-center gap-1 rounded',
|
||||
'w-fit px-1.5 py-0.5',
|
||||
'text-sm font-medium text-white',
|
||||
{
|
||||
' bg-success-7 th-dark:bg-success-9': color === 'success',
|
||||
' bg-warning-7 th-dark:bg-warning-9': color === 'warning',
|
||||
' bg-error-7 th-dark:bg-error-9': color === 'danger',
|
||||
'bg-success-7 th-dark:bg-success-9': color === 'success',
|
||||
'bg-warning-7 th-dark:bg-warning-9': color === 'warning',
|
||||
'bg-error-7 th-dark:bg-error-9': color === 'danger',
|
||||
'bg-blue-9': color === 'info',
|
||||
},
|
||||
className
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue