mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
feat(edge/stacks): increase status transparency [EE-5554] (#9094)
This commit is contained in:
parent
db61fb149b
commit
0bcb57568c
45 changed files with 1305 additions and 316 deletions
|
@ -29,15 +29,15 @@ interface Props {
|
|||
className?: string;
|
||||
size?: IconSize;
|
||||
mode?: IconMode;
|
||||
spin?: boolean;
|
||||
}
|
||||
|
||||
export function Icon({ icon, className, mode, size }: Props) {
|
||||
const classes = clsx(
|
||||
className,
|
||||
'icon inline-flex',
|
||||
{ [`icon-${mode}`]: mode },
|
||||
{ [`icon-${size}`]: size }
|
||||
);
|
||||
export function Icon({ icon, className, mode, size, spin }: Props) {
|
||||
const classes = clsx(className, 'icon inline-flex', {
|
||||
[`icon-${mode}`]: mode,
|
||||
[`icon-${size}`]: size,
|
||||
'animate-spin-slow': spin,
|
||||
});
|
||||
|
||||
if (typeof icon !== 'string') {
|
||||
const Icon = isValidElementType(icon) ? icon : null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue