1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

fix(UI): update icons for beta and experimental features EE-5435 (#8940)

This commit is contained in:
Prabhat Khera 2023-05-18 10:19:44 +12:00 committed by GitHub
parent 395d86dcd1
commit b58cd1e87e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 51 additions and 44 deletions

View file

@ -10,6 +10,7 @@ export interface Props {
icon?: React.ReactNode;
color?: Color;
className?: string;
childrenWrapperClassName?: string;
}
export function TextTip({
@ -17,12 +18,13 @@ export function TextTip({
icon = AlertCircle,
className,
children,
childrenWrapperClassName = 'text-muted',
}: PropsWithChildren<Props>) {
return (
<div className={clsx('small inline-flex gap-1', className)}>
<Icon icon={icon} mode={getMode(color)} className="!mt-[2px]" />
<span className="text-muted">{children}</span>
<span className={childrenWrapperClassName}>{children}</span>
</div>
);
}