fixed link to documentation (#34613)

fixes: #34519

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-11-05 14:19:29 +01:00 committed by GitHub
parent 9851452be1
commit 1718a3ee94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,4 @@
import { useHelp } from "@keycloak/keycloak-ui-shared";
import { import {
Divider, Divider,
Dropdown, Dropdown,
@ -7,14 +8,12 @@ import {
Split, Split,
SplitItem, SplitItem,
Switch, Switch,
TextContent,
} from "@patternfly/react-core"; } from "@patternfly/react-core";
import { ExternalLinkAltIcon, HelpIcon } from "@patternfly/react-icons"; import { HelpIcon } from "@patternfly/react-icons";
import { useState } from "react"; import { useState } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import helpUrls from "../../help-urls"; import helpUrls from "../../help-urls";
import { useHelp } from "@keycloak/keycloak-ui-shared"; import { FormattedLink } from "../external-link/FormattedLink";
import "./help-header.css"; import "./help-header.css";
@ -24,21 +23,14 @@ export const HelpHeader = () => {
const { t } = useTranslation(); const { t } = useTranslation();
const dropdownItems = [ const dropdownItems = [
<DropdownItem <DropdownItem key="link" id="link">
key="link" <FormattedLink
id="link"
href={helpUrls.documentationUrl} href={helpUrls.documentationUrl}
target="_blank" title={t("documentation")}
> />
<Split>
<SplitItem isFilled>{t("documentation")}</SplitItem>
<SplitItem>
<ExternalLinkAltIcon />
</SplitItem>
</Split>
</DropdownItem>, </DropdownItem>,
<Divider key="divide" />, <Divider key="divide" />,
<DropdownItem key="enable" id="enable"> <DropdownItem key="enable" id="enable" description={t("helpToggleInfo")}>
<Split> <Split>
<SplitItem isFilled>{t("enableHelpMode")}</SplitItem> <SplitItem isFilled>{t("enableHelpMode")}</SplitItem>
<SplitItem> <SplitItem>
@ -52,9 +44,6 @@ export const HelpHeader = () => {
/> />
</SplitItem> </SplitItem>
</Split> </Split>
<TextContent className="keycloak_help-header-description">
{t("helpToggleInfo")}
</TextContent>
</DropdownItem>, </DropdownItem>,
]; ];
return ( return (