Skip to content

Commit

Permalink
fixed link to documentation (keycloak#34613)
Browse files Browse the repository at this point in the history
fixes: keycloak#34519

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
  • Loading branch information
edewit authored Nov 5, 2024
1 parent 9851452 commit 1718a3e
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions js/apps/admin-ui/src/components/help-enabler/HelpHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useHelp } from "@keycloak/keycloak-ui-shared";
import {
Divider,
Dropdown,
Expand All @@ -7,14 +8,12 @@ import {
Split,
SplitItem,
Switch,
TextContent,
} from "@patternfly/react-core";
import { ExternalLinkAltIcon, HelpIcon } from "@patternfly/react-icons";
import { HelpIcon } from "@patternfly/react-icons";
import { useState } from "react";
import { useTranslation } from "react-i18next";

import helpUrls from "../../help-urls";
import { useHelp } from "@keycloak/keycloak-ui-shared";
import { FormattedLink } from "../external-link/FormattedLink";

import "./help-header.css";

Expand All @@ -24,21 +23,14 @@ export const HelpHeader = () => {
const { t } = useTranslation();

const dropdownItems = [
<DropdownItem
key="link"
id="link"
href={helpUrls.documentationUrl}
target="_blank"
>
<Split>
<SplitItem isFilled>{t("documentation")}</SplitItem>
<SplitItem>
<ExternalLinkAltIcon />
</SplitItem>
</Split>
<DropdownItem key="link" id="link">
<FormattedLink
href={helpUrls.documentationUrl}
title={t("documentation")}
/>
</DropdownItem>,
<Divider key="divide" />,
<DropdownItem key="enable" id="enable">
<DropdownItem key="enable" id="enable" description={t("helpToggleInfo")}>
<Split>
<SplitItem isFilled>{t("enableHelpMode")}</SplitItem>
<SplitItem>
Expand All @@ -52,9 +44,6 @@ export const HelpHeader = () => {
/>
</SplitItem>
</Split>
<TextContent className="keycloak_help-header-description">
{t("helpToggleInfo")}
</TextContent>
</DropdownItem>,
];
return (
Expand Down

0 comments on commit 1718a3e

Please sign in to comment.