mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
feat(console): add mfa docs link on the mfa config page (#4853)
This commit is contained in:
parent
0fd4a011f6
commit
a3001fbcd9
1 changed files with 7 additions and 1 deletions
|
@ -16,6 +16,7 @@ import InlineNotification from '@/ds-components/InlineNotification';
|
||||||
import RadioGroup, { Radio } from '@/ds-components/RadioGroup';
|
import RadioGroup, { Radio } from '@/ds-components/RadioGroup';
|
||||||
import Switch from '@/ds-components/Switch';
|
import Switch from '@/ds-components/Switch';
|
||||||
import useApi from '@/hooks/use-api';
|
import useApi from '@/hooks/use-api';
|
||||||
|
import useDocumentationUrl from '@/hooks/use-documentation-url';
|
||||||
import useSubscriptionPlan from '@/hooks/use-subscription-plan';
|
import useSubscriptionPlan from '@/hooks/use-subscription-plan';
|
||||||
import useTenantPathname from '@/hooks/use-tenant-pathname';
|
import useTenantPathname from '@/hooks/use-tenant-pathname';
|
||||||
import { trySubmitSafe } from '@/utils/form';
|
import { trySubmitSafe } from '@/utils/form';
|
||||||
|
@ -39,6 +40,7 @@ function MfaForm({ data, onMfaUpdated }: Props) {
|
||||||
const isMfaDisabled = isCloud && !currentPlan?.quota.mfaEnabled;
|
const isMfaDisabled = isCloud && !currentPlan?.quota.mfaEnabled;
|
||||||
|
|
||||||
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
|
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
|
||||||
|
const { getDocumentationUrl } = useDocumentationUrl();
|
||||||
const {
|
const {
|
||||||
register,
|
register,
|
||||||
reset,
|
reset,
|
||||||
|
@ -90,7 +92,11 @@ function MfaForm({ data, onMfaUpdated }: Props) {
|
||||||
onSubmit={onSubmit}
|
onSubmit={onSubmit}
|
||||||
onDiscard={reset}
|
onDiscard={reset}
|
||||||
>
|
>
|
||||||
<FormCard title="mfa.factors" description="mfa.multi_factors_description">
|
<FormCard
|
||||||
|
title="mfa.factors"
|
||||||
|
description="mfa.multi_factors_description"
|
||||||
|
learnMoreLink={getDocumentationUrl('/docs/recipes/multi-factor-auth/config-mfa')}
|
||||||
|
>
|
||||||
<FormField title="mfa.multi_factors" headlineSpacing="large">
|
<FormField title="mfa.multi_factors" headlineSpacing="large">
|
||||||
<div className={styles.factorField}>
|
<div className={styles.factorField}>
|
||||||
<Switch
|
<Switch
|
||||||
|
|
Loading…
Add table
Reference in a new issue