0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

refactor(console): remove mfa beta notice (#5390)

This commit is contained in:
Xiao Yijun 2024-02-07 11:18:56 +08:00 committed by GitHub
parent c07049b64c
commit 7e3bc419d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 0 additions and 51 deletions

View file

@ -10,9 +10,3 @@
margin-bottom: _.unit(4);
}
}
.betaNotice {
// Show multiple spaces
white-space: pre-wrap;
margin-bottom: _.unit(4);
}

View file

@ -1,15 +1,12 @@
import { ReservedPlanId } from '@logto/schemas';
import { cond } from '@silverhand/essentials';
import { useContext, type ReactNode } from 'react';
import { Trans, useTranslation } from 'react-i18next';
import ContactUsPhraseLink from '@/components/ContactUsPhraseLink';
import PageMeta from '@/components/PageMeta';
import { isCloud } from '@/consts/env';
import { SubscriptionDataContext } from '@/contexts/SubscriptionDataProvider';
import { TenantsContext } from '@/contexts/TenantsProvider';
import CardTitle from '@/ds-components/CardTitle';
import InlineNotification from '@/ds-components/InlineNotification';
import * as styles from './index.module.scss';
@ -20,7 +17,6 @@ type Props = {
function PageWrapper({ children }: Props) {
const { isDevTenant } = useContext(TenantsContext);
const { currentPlan } = useContext(SubscriptionDataContext);
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
const isMfaEnabled = !isCloud || currentPlan.quota.mfaEnabled;
return (
@ -32,17 +28,6 @@ function PageWrapper({ children }: Props) {
subtitle="mfa.description"
className={styles.cardTitle}
/>
{isMfaEnabled && (
<InlineNotification hasIcon={false} className={styles.betaNotice}>
<Trans
components={{
ContactLink: <ContactUsPhraseLink />,
}}
>
{t('general.beta_notice', { feature: 'MFA' })}
</Trans>
</InlineNotification>
)}
{children}
</div>
);

View file

@ -70,8 +70,6 @@ const general = {
edit_field: 'Bearbeite {{field}}',
delete_field: 'Lösche {{field}}',
coming_soon: 'Demnächst verfügbar',
beta_notice:
'🎉 {{feature}} befindet sich derzeit in der Beta-Phase. Willkommen, es zu erkunden und <ContactLink>Geben Sie Ihr Feedback</ContactLink>.',
};
export default Object.freeze(general);

View file

@ -67,8 +67,6 @@ const general = {
edit_field: 'Edit {{field}}',
delete_field: 'Delete {{field}}',
coming_soon: 'Coming soon',
beta_notice:
'🎉 {{feature}} is currently in beta. Welcome to explore it and <ContactLink>share your feedback</ContactLink>.',
};
export default Object.freeze(general);

View file

@ -70,8 +70,6 @@ const general = {
edit_field: 'Editar {{field}}',
delete_field: 'Eliminar {{field}}',
coming_soon: 'Próximamente',
beta_notice:
'🎉 {{feature}} actualmente está en beta. Bienvenido a explorarlo y <ContactLink>compartir tus comentarios</ContactLink>.',
};
export default Object.freeze(general);

View file

@ -70,8 +70,6 @@ const general = {
edit_field: 'Modifier {{field}}',
delete_field: 'Supprimer {{field}}',
coming_soon: 'Bientôt disponible',
beta_notice:
'🎉 {{feature}} est actuellement en version bêta. Bienvenue pour l`explorer et <ContactLink>partager vos commentaires</ContactLink>.',
};
export default Object.freeze(general);

View file

@ -70,8 +70,6 @@ const general = {
edit_field: 'Modifica {{field}}',
delete_field: 'Elimina {{field}}',
coming_soon: 'Prossimamente',
beta_notice:
'🎉 {{feature}} è attualmente in versione beta. Benvenuto a esplorarlo e <ContactLink>condividi il tuo feedback</ContactLink>.',
};
export default Object.freeze(general);

View file

@ -69,8 +69,6 @@ const general = {
edit_field: '{{field}}を編集',
delete_field: '{{field}}を削除',
coming_soon: '近日公開予定',
beta_notice:
'🎉 {{feature}} は現在ベータ版です。お試しいただき、<ContactLink>フィードバックを共有</ContactLink>してください。',
};
export default Object.freeze(general);

View file

@ -69,8 +69,6 @@ const general = {
edit_field: '{{field}} 편집',
delete_field: '{{field}} 삭제',
coming_soon: '곧 출시 예정',
beta_notice:
'🎉 {{feature}}는 현재 베타 버전입니다. 탐색하고 <ContactLink>피드백을 공유</ContactLink>해주세요.',
};
export default Object.freeze(general);

View file

@ -69,8 +69,6 @@ const general = {
edit_field: 'Edytuj {{field}}',
delete_field: 'Usuń {{field}}',
coming_soon: 'Wkrótce dostępne',
beta_notice:
'🎉 {{feature}} znajduje się obecnie w fazie beta. Zapraszamy do jego eksploracji i <ContactLink>podzielenia się opinią</ContactLink>.',
};
export default Object.freeze(general);

View file

@ -70,8 +70,6 @@ const general = {
edit_field: 'Editar {{field}}',
delete_field: 'Excluir {{field}}',
coming_soon: 'Em breve',
beta_notice:
'🎉 {{feature}} está atualmente em beta. Bem-vindo para explorá-lo e <ContactLink>compartilhar seu feedback</ContactLink>.',
};
export default Object.freeze(general);

View file

@ -69,8 +69,6 @@ const general = {
edit_field: 'Editar {{field}}',
delete_field: 'Eliminar {{field}}',
coming_soon: 'Em breve',
beta_notice:
'🎉 {{feature}} está atualmente em beta. Bem-vindo para explorar e <ContactLink>partilhar o seu feedback</ContactLink>.',
};
export default Object.freeze(general);

View file

@ -69,8 +69,6 @@ const general = {
edit_field: 'Изменить {{field}}',
delete_field: 'Удалить {{field}}',
coming_soon: 'Скоро',
beta_notice:
'🎉 {{feature}} сейчас находится в бета-тестировании. Добро пожаловать, чтобы изучить его и <ContactLink>поделиться своими отзывами</ContactLink>.',
};
export default Object.freeze(general);

View file

@ -70,8 +70,6 @@ const general = {
edit_field: '{{field}} Düzenle',
delete_field: '{{field}} Sil',
coming_soon: 'Yakında',
beta_notice:
'🎉 {{feature}} şu anda beta sürümünde. Keşfetmeye hoş geldiniz ve <ContactLink>geri bildiriminizi paylaşın</ContactLink>.',
};
export default Object.freeze(general);

View file

@ -69,8 +69,6 @@ const general = {
edit_field: '编辑{{field}}',
delete_field: '删除{{field}}',
coming_soon: '即将上线',
beta_notice:
'🎉 {{feature}} 目前处于测试阶段。欢迎您去探索并<ContactLink>分享您的反馈</ContactLink>。',
};
export default Object.freeze(general);

View file

@ -69,8 +69,6 @@ const general = {
edit_field: '編輯{{field}}',
delete_field: '刪除{{field}}',
coming_soon: '即將推出',
beta_notice:
'🎉 {{feature}} 目前處於測試階段。歡迎探索並 <ContactLink>分享您的意見</ContactLink>。',
};
export default Object.freeze(general);

View file

@ -69,8 +69,6 @@ const general = {
edit_field: '編輯{{field}}',
delete_field: '刪除{{field}}',
coming_soon: '即將上線',
beta_notice:
'🎉 {{feature}} 目前正處於測試版。歡迎探索並 <ContactLink>分享您的反饋意見</ContactLink>。',
};
export default Object.freeze(general);