mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -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) {
|
||||
const { currentTenantId } = useContext(TenantsContext);
|
||||
const { currentTenantId, isDevTenant } = useContext(TenantsContext);
|
||||
const { data: currentPlan } = useSubscriptionPlan(currentTenantId);
|
||||
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
|
||||
// Note: fallback to true for OSS version
|
||||
|
@ -28,7 +28,7 @@ function PageWrapper({ children }: Props) {
|
|||
<PageMeta titleKey="mfa.title" />
|
||||
<CardTitle
|
||||
isBeta
|
||||
paywall={cond(!isMfaEnabled && ReservedPlanId.hobby)}
|
||||
paywall={cond((!isMfaEnabled || isDevTenant) && ReservedPlanId.hobby)}
|
||||
title="mfa.title"
|
||||
subtitle="mfa.description"
|
||||
className={styles.cardTitle}
|
||||
|
|
Loading…
Add table
Reference in a new issue