mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 06:19:41 +02:00
feat(app): add ingress to app service form [EE-5569] (#9106)
This commit is contained in:
parent
8c16fbb8aa
commit
89c1d0e337
47 changed files with 1929 additions and 1181 deletions
|
@ -0,0 +1,33 @@
|
|||
import { AlertTriangle } from 'lucide-react';
|
||||
|
||||
import { Badge } from '@@/Badge';
|
||||
import { Icon } from '@@/Icon';
|
||||
|
||||
type Props = {
|
||||
serviceTypeLabel: string;
|
||||
serviceTypeCount: number;
|
||||
serviceTypeHasErrors: boolean;
|
||||
};
|
||||
|
||||
export function ServiceTabLabel({
|
||||
serviceTypeLabel,
|
||||
serviceTypeCount,
|
||||
serviceTypeHasErrors,
|
||||
}: Props) {
|
||||
return (
|
||||
<div className="inline-flex items-center">
|
||||
{serviceTypeLabel}
|
||||
{serviceTypeCount && (
|
||||
<Badge
|
||||
className="ml-2 flex-none"
|
||||
type={serviceTypeHasErrors ? 'warn' : 'info'}
|
||||
>
|
||||
{serviceTypeHasErrors && (
|
||||
<Icon icon={AlertTriangle} className="!mr-1" />
|
||||
)}
|
||||
{serviceTypeCount}
|
||||
</Badge>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue