mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(edge/stacks): sync EE codechanges [EE-498] (#8580)
This commit is contained in:
parent
0ec7dfce69
commit
93bf630105
53 changed files with 1572 additions and 424 deletions
|
@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|||
|
||||
import { Icon, IconMode } from '@@/Icon';
|
||||
|
||||
type Color = 'orange' | 'blue';
|
||||
type Color = 'orange' | 'blue' | 'red' | 'green';
|
||||
|
||||
export interface Props {
|
||||
icon?: React.ReactNode;
|
||||
|
@ -33,6 +33,10 @@ function getMode(color: Color): IconMode {
|
|||
switch (color) {
|
||||
case 'blue':
|
||||
return 'primary';
|
||||
case 'red':
|
||||
return 'danger';
|
||||
case 'green':
|
||||
return 'success';
|
||||
case 'orange':
|
||||
default:
|
||||
return 'warning';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue