mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
feat(helm): enhance helm chart install [r8s-341] (#766)
This commit is contained in:
parent
caac45b834
commit
a9061e5258
29 changed files with 864 additions and 562 deletions
32
app/react/components/ExternalLink.tsx
Normal file
32
app/react/components/ExternalLink.tsx
Normal file
|
@ -0,0 +1,32 @@
|
|||
import { ExternalLink as ExternalLinkIcon } from 'lucide-react';
|
||||
import { PropsWithChildren } from 'react';
|
||||
import clsx from 'clsx';
|
||||
|
||||
import { AutomationTestingProps } from '@/types';
|
||||
|
||||
import { Icon } from '@@/Icon';
|
||||
|
||||
interface Props {
|
||||
to: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function ExternalLink({
|
||||
to,
|
||||
className,
|
||||
children,
|
||||
'data-cy': dataCy,
|
||||
}: PropsWithChildren<Props & AutomationTestingProps>) {
|
||||
return (
|
||||
<a
|
||||
href={to}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
data-cy={dataCy}
|
||||
className={clsx('inline-flex items-center gap-1', className)}
|
||||
>
|
||||
<Icon icon={ExternalLinkIcon} />
|
||||
<span>{children}</span>
|
||||
</a>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue