Skip to content

Commit

Permalink
Add missing doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
DonOmalVindula committed Apr 30, 2024
1 parent 5315423 commit 9c0ebde
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions features/admin.ai.v1/components/branding-ai-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const BrandingAIBanner: FunctionComponent = (): ReactElement => {
{ t("branding:ai.banner.input.subHeading") }
<DocumentationLink
link={ getLink("develop.branding.ai.learnMore") }
isLinkRef={ true }>
>
<Trans i18nKey={ "extensions:common.learnMore" }>
Learn more
</Trans>
Expand Down Expand Up @@ -241,8 +241,8 @@ export const BrandingAIBanner: FunctionComponent = (): ReactElement => {
<Typography className="branding-ai-banner-sub-heading">
{ t("branding:ai.banner.collapsed.subHeading") }
<DocumentationLink
link={ "" }
isLinkRef={ true }>
link={ getLink("develop.branding.ai.learnMore") }
>
<Trans i18nKey={ "extensions:common.learnMore" }>
Learn more
</Trans>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import TextField from "@oxygen-ui/react/TextField";
import Typography from "@oxygen-ui/react/Typography";
import { AlertLevels } from "@wso2is/core/models";
import { addAlert } from "@wso2is/core/store";
import { DocumentationLink, GenericIcon } from "@wso2is/react-components";
import { DocumentationLink, GenericIcon, useDocumentation } from "@wso2is/react-components";
import React, { FunctionComponent, ReactElement, useState } from "react";
import { Trans, useTranslation } from "react-i18next";
import { useDispatch } from "react-redux";
Expand All @@ -50,6 +50,8 @@ const LoginFlowAIBanner: FunctionComponent = (): ReactElement => {

const { isGeneratingLoginFlow } = useAILoginFlow();

const { getLink } = useDocumentation();

const { filteredAuthenticators, loading: isAuthenticatorsLoading } = useAvailableAuthenticators();

const { claimURI, error: userClaimError } = useUserClaims();
Expand Down Expand Up @@ -202,9 +204,9 @@ const LoginFlowAIBanner: FunctionComponent = (): ReactElement => {
<Typography className="login-flow-ai-banner-sub-heading">
{ t("ai:aiLoginFlow.banner.input.subheading") }
<DocumentationLink
link={ "develop.applications.editApplication.common.signInMethod." +
"conditionalAuthenticaion.ai.learnMore" }
isLinkRef={ true }>
link={ getLink("develop.applications.editApplication.common.signInMethod." +
"conditionalAuthenticaion.ai.learnMore") }
>
<Trans i18nKey={ "extensions:common.learnMore" }>
Learn more
</Trans>
Expand Down Expand Up @@ -291,8 +293,9 @@ const LoginFlowAIBanner: FunctionComponent = (): ReactElement => {
<Typography className="login-flow-ai-banner-sub-heading">
{ t("ai:aiLoginFlow.banner.input.subheading") }
<DocumentationLink
link={ "" }
isLinkRef={ true }>
link={ getLink("develop.applications.editApplication.common.signInMethod." +
"conditionalAuthenticaion.ai.learnMore") }
>
<Trans i18nKey={ "extensions:common.learnMore" }>
Learn more
</Trans>
Expand Down

0 comments on commit 9c0ebde

Please sign in to comment.