mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
refactor(console): display paywall tag on mfa page for dev tenant (#4915)
This commit is contained in:
parent
081094de34
commit
ae4f855c9e
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ type Props = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function PageWrapper({ children }: Props) {
|
function PageWrapper({ children }: Props) {
|
||||||
const { currentTenantId } = useContext(TenantsContext);
|
const { currentTenantId, isDevTenant } = useContext(TenantsContext);
|
||||||
const { data: currentPlan } = useSubscriptionPlan(currentTenantId);
|
const { data: currentPlan } = useSubscriptionPlan(currentTenantId);
|
||||||
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
|
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
|
||||||
// Note: fallback to true for OSS version
|
// Note: fallback to true for OSS version
|
||||||
|
@ -28,7 +28,7 @@ function PageWrapper({ children }: Props) {
|
||||||
<PageMeta titleKey="mfa.title" />
|
<PageMeta titleKey="mfa.title" />
|
||||||
<CardTitle
|
<CardTitle
|
||||||
isBeta
|
isBeta
|
||||||
paywall={cond(!isMfaEnabled && ReservedPlanId.hobby)}
|
paywall={cond((!isMfaEnabled || isDevTenant) && ReservedPlanId.hobby)}
|
||||||
title="mfa.title"
|
title="mfa.title"
|
||||||
subtitle="mfa.description"
|
subtitle="mfa.description"
|
||||||
className={styles.cardTitle}
|
className={styles.cardTitle}
|
||||||
|
|
Loading…
Add table
Reference in a new issue