mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
fix(UI): update icons for beta and experimental features EE-5435 (#8940)
This commit is contained in:
parent
395d86dcd1
commit
b58cd1e87e
13 changed files with 51 additions and 44 deletions
|
@ -36,6 +36,7 @@ import nomadicon from '@/assets/ico/vendor/nomad-icon.svg?c';
|
|||
import openldap from '@/assets/ico/vendor/openldap.svg?c';
|
||||
import proget from '@/assets/ico/vendor/proget.svg?c';
|
||||
import quay from '@/assets/ico/vendor/quay.svg?c';
|
||||
import beta from '@/assets/ico/beta.svg?c';
|
||||
|
||||
const placeholder = Placeholder;
|
||||
|
||||
|
@ -76,6 +77,7 @@ export const SvgIcons = {
|
|||
proget,
|
||||
quay,
|
||||
kube,
|
||||
beta,
|
||||
};
|
||||
|
||||
interface SvgProps {
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue