0
Fork 0
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:
Xiao Yijun 2023-11-20 14:27:25 +08:00 committed by GitHub
parent 081094de34
commit ae4f855c9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}