mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(ui): renovate the FDO devices list EE-3669 (#7231)
This commit is contained in:
parent
87e9d7f8d4
commit
7e3347da2b
3 changed files with 27 additions and 17 deletions
|
@ -1,6 +1,8 @@
|
|||
import { PropsWithChildren } from 'react';
|
||||
import clsx from 'clsx';
|
||||
|
||||
import { Icon } from '@@/Icon';
|
||||
|
||||
type Color = 'orange' | 'blue';
|
||||
|
||||
export interface Props {
|
||||
|
@ -11,15 +13,25 @@ export function TextTip({
|
|||
color = 'orange',
|
||||
children,
|
||||
}: PropsWithChildren<Props>) {
|
||||
let iconClass: string;
|
||||
|
||||
switch (color) {
|
||||
case 'blue':
|
||||
iconClass = 'icon-primary';
|
||||
break;
|
||||
case 'orange':
|
||||
iconClass = 'icon-warning';
|
||||
break;
|
||||
default:
|
||||
iconClass = 'icon-warning';
|
||||
}
|
||||
|
||||
return (
|
||||
<p className="text-muted small">
|
||||
<i
|
||||
aria-hidden="true"
|
||||
className={clsx(
|
||||
'fa fa-exclamation-circle',
|
||||
`${color}-icon`,
|
||||
'space-right'
|
||||
)}
|
||||
<p className="text-muted small vertical-center">
|
||||
<Icon
|
||||
icon="alert-circle"
|
||||
feather
|
||||
className={clsx(`${iconClass}`, 'space-right')}
|
||||
/>
|
||||
{children}
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue