mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
fix(doclinks): fix help link paths [EE-6861] (#11418)
This commit is contained in:
parent
bd3440bf3c
commit
07de1b2c06
2 changed files with 9 additions and 9 deletions
|
@ -1,9 +1,11 @@
|
|||
import { ReactNode } from 'react';
|
||||
|
||||
import { useDocsUrl } from '../PageHeader/ContextHelp/ContextHelp';
|
||||
|
||||
type HelpLinkProps = {
|
||||
docLink?: string;
|
||||
docLink: string;
|
||||
target?: string;
|
||||
children?: React.ReactNode;
|
||||
children?: ReactNode;
|
||||
};
|
||||
|
||||
export function HelpLink({
|
||||
|
@ -14,7 +16,7 @@ export function HelpLink({
|
|||
const docsUrl = useDocsUrl(docLink);
|
||||
|
||||
return (
|
||||
<a href={docsUrl} target={target} rel="noreferrer">
|
||||
<a href={docsUrl} target={target} rel="noopener noreferrer">
|
||||
{children}
|
||||
</a>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue