mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
port changes from EE (#9003)
This commit is contained in:
parent
3cd0409184
commit
fb2646b70c
5 changed files with 51 additions and 31 deletions
|
@ -10,11 +10,19 @@ interface Props {
|
|||
|
||||
export function FormError({ children, className }: PropsWithChildren<Props>) {
|
||||
return (
|
||||
<p
|
||||
className={clsx(`text-muted small vertical-center help-block`, className)}
|
||||
<div
|
||||
className={clsx(
|
||||
`text-muted help-block !inline-flex gap-1 !align-top text-xs`,
|
||||
className
|
||||
)}
|
||||
>
|
||||
<Icon icon={AlertTriangle} className="icon-warning shrink-0" />
|
||||
<span className="text-warning">{children}</span>
|
||||
</p>
|
||||
<Icon
|
||||
icon={AlertTriangle}
|
||||
mode="warning"
|
||||
size="sm"
|
||||
className="flex-none"
|
||||
/>
|
||||
<div className="text-warning">{children}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue