0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

chore(console): remove toast for creating tenant (#4067)

This commit is contained in:
Darcy Ye 2023-06-20 18:40:48 +08:00 committed by GitHub
parent da6f9eef5c
commit 7902c1b0e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 0 additions and 19 deletions

View file

@ -2,7 +2,6 @@ import { Theme } from '@logto/schemas';
import type { TenantInfo } from '@logto/schemas/models';
import classNames from 'classnames';
import { useContext, useEffect, useState } from 'react';
import { toast } from 'react-hot-toast';
import { useTranslation } from 'react-i18next';
import Plus from '@/assets/icons/plus.svg';
@ -68,7 +67,6 @@ function TenantLandingPageContent({ className }: Props) {
onClose={async (tenant?: TenantInfo) => {
if (tenant) {
void mutate();
toast.success(t('tenants.tenant_created', { name: tenant.name }));
window.location.assign(new URL(`/${tenant.id}`, window.location.origin).toString());
}
setIsCreateModalOpen(false);

View file

@ -1,7 +1,6 @@
import { type TenantInfo } from '@logto/schemas/models';
import classNames from 'classnames';
import { useContext, useRef, useState, useEffect, useMemo } from 'react';
import { toast } from 'react-hot-toast';
import { useTranslation } from 'react-i18next';
import KeyboardArrowDown from '@/assets/icons/keyboard-arrow-down.svg';
@ -122,7 +121,6 @@ function TenantSelector() {
isOpen={showCreateTenantModal}
onClose={async (tenant?: TenantInfo) => {
if (tenant) {
toast.success(t('tenants.tenant_created', { name: tenant.name }));
void mutate();
window.location.assign(new URL(`/${tenant.id}`, window.location.origin).toString());
}

View file

@ -28,7 +28,6 @@ const tenants = {
'Um Ihr Projekt mit Logto zu konfigurieren, erstellen Sie bitte einen neuen Mandanten. Wenn Sie sich abmelden oder Ihr Konto löschen möchten, klicken Sie einfach auf die Avatar-Taste in der oberen rechten Ecke.',
create_tenant_button: 'Mandanten erstellen',
},
tenant_created: "Mieter '{{name}}' erfolgreich erstellt.",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
'To start configuring your project with Logto, please create a new tenant. If you need to log out or delete your account, just click on the avatar button in the top right corner.',
create_tenant_button: 'Create tenant',
},
tenant_created: "Tenant '{{name}}' created successfully.",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
'Para empezar a configurar tu proyecto con Logto, por favor crea un nuevo tenant. Si necesitas cerrar la sesión o eliminar tu cuenta, simplemente haz clic en el botón de avatar en la esquina superior derecha.',
create_tenant_button: 'Crear tenant',
},
tenant_created: "El inquilino '{{name}}' se ha creado correctamente.",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
"Pour commencer à configurer votre projet avec Logto, veuillez créer un nouveau locataire. Si vous devez vous déconnecter ou supprimer votre compte, cliquez simplement sur le bouton d'avatar dans le coin supérieur droit.",
create_tenant_button: 'Créer un locataire',
},
tenant_created: "Locataire '{{name}}' créé avec succès.",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
'Per iniziare a configurare il tuo progetto con Logto, crea un nuovo tenant. Se hai bisogno di uscire o eliminare il tuo account, clicca sul pulsante avatar in alto a destra.',
create_tenant_button: 'Crea tenant',
},
tenant_created: "Tenant '{{name}}' creato con successo.",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
'Logto でプロジェクトを設定するには、新しいテナントを作成してください。ログアウトまたはアカウントを削除する必要がある場合は、右上隅のアバターボタンをクリックしてください。',
create_tenant_button: 'テナントを作成',
},
tenant_created: "{{name}}'のテナントが正常に作成されました。",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
'Logto 를 사용하여 프로젝트를 구성하려면 새 테넌트를 만드세요. 로그아웃하거나 계정을 삭제하려면 오른쪽 상단 모서리에있는 아바타 버튼을 클릭하세요.',
create_tenant_button: '테넌트 만들기',
},
tenant_created: "테넌트 '{{name}}'가(이) 성공적으로 만들어졌습니다.",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
'Aby rozpocząć konfigurowanie projektu z Logto, utwórz nowego najemcę. Jeśli musisz się wylogować lub usunąć swoje konto, wystarczy kliknąć przycisk awatara w prawym górnym rogu.',
create_tenant_button: 'Utwórz najemcę',
},
tenant_created: "Najemca '{{name}}' utworzony pomyślnie.",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
'Para começar a configurar seu projeto com o Logto, crie um novo inquilino. Se você precisar fazer logout ou excluir sua conta, basta clicar no botão de avatar no canto superior direito.',
create_tenant_button: 'Criar inquilino',
},
tenant_created: "Inquilino '{{name}}' criado com sucesso.",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
'Para começar a configurar o seu projeto com o Logto, crie um novo inquilino. Se precisar de fazer logout ou excluir a sua conta, basta clicar no botão avatar no canto superior direito.',
create_tenant_button: 'Criar inquilino',
},
tenant_created: "Inquilino '{{name}}' criado com sucesso.",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
'Чтобы начать настройку вашего проекта с помощью Logto, создайте нового арендатора. Если вам нужно выйти из системы или удалить свою учетную запись, просто нажмите на кнопку аватара в правом верхнем углу.',
create_tenant_button: 'Создать арендатора',
},
tenant_created: "Арендатор '{{name}}' успешно создан.",
};
export default tenants;

View file

@ -28,7 +28,6 @@ const tenants = {
'Logto ile projenizi yapılandırmaya başlamak için lütfen yeni bir kiracı oluşturun. Hesabınızdan çıkış yapmanız veya hesabınızı silmeniz gerekiyorsa, sağ üst köşedeki avatar düğmesine tıklayın.',
create_tenant_button: 'Kiracı oluştur',
},
tenant_created: "Kiracı '{{name}}' başarıyla oluşturuldu.",
};
export default tenants;

View file

@ -27,7 +27,6 @@ const tenants = {
'要开始使用 Logto 配置项目,请创建一个新租户。如果您需要注销或删除您的帐户,只需单击右上角的头像按钮。',
create_tenant_button: '创建租户',
},
tenant_created: "租户'{{name}}'创建成功。",
};
export default tenants;

View file

@ -27,7 +27,6 @@ const tenants = {
'要開始使用 Logto 配置您的項目,請創建一個新的租戶。如果您需要退出或刪除您的帳戶,只需單擊右上角的頭像按鈕。',
create_tenant_button: '創建租戶',
},
tenant_created: '成功創建租戶「{{name}}」。',
};
export default tenants;

View file

@ -27,7 +27,6 @@ const tenants = {
'要開始使用Logto配置您的項目請創建一個新租戶。如果您需要登出或刪除您的帳戶只需點擊右上角的頭像按鈕。',
create_tenant_button: '創建租戶',
},
tenant_created: "租戶 '{{name}}' 成功建立。",
};
export default tenants;