1
0
Fork 0
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:
Matt Hook 2023-06-02 08:35:15 +12:00 committed by GitHub
parent 3cd0409184
commit fb2646b70c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 31 deletions

View file

@ -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>
);
}