diff --git a/adminfront/src/components/layout/AppLayout.tsx b/adminfront/src/components/layout/AppLayout.tsx index 9a00ee10..797f6273 100644 --- a/adminfront/src/components/layout/AppLayout.tsx +++ b/adminfront/src/components/layout/AppLayout.tsx @@ -46,13 +46,16 @@ function AppLayout() { enabled: (auth.isAuthenticated && !auth.isLoading) || import.meta.env.MODE === "development" || - (window as any)._IS_TEST_MODE === true, + (window as Window & typeof globalThis & { _IS_TEST_MODE?: boolean }) + ._IS_TEST_MODE === true, }); const navItems = React.useMemo(() => { const items = [...staticNavItems]; - const isTest = (window as any)._IS_TEST_MODE === true; - + const isTest = + (window as Window & typeof globalThis & { _IS_TEST_MODE?: boolean }) + ._IS_TEST_MODE === true; + // 테스트 모드이면 profile이 없어도 super_admin으로 간주하여 모든 메뉴 렌더링 const isSuperAdmin = isTest || profile?.role === "super_admin"; const isTenantAdmin = profile?.role === "tenant_admin"; diff --git a/adminfront/src/features/tenants/routes/TenantCreatePage.tsx b/adminfront/src/features/tenants/routes/TenantCreatePage.tsx index c6ad4e93..c8c21e89 100644 --- a/adminfront/src/features/tenants/routes/TenantCreatePage.tsx +++ b/adminfront/src/features/tenants/routes/TenantCreatePage.tsx @@ -109,7 +109,10 @@ function TenantCreatePage() { name="name" value={name} onChange={(e) => setName(e.target.value)} - placeholder={t("ui.admin.tenants.create.form.name_placeholder", "테넌트 이름을 입력하세요")} + placeholder={t( + "ui.admin.tenants.create.form.name_placeholder", + "테넌트 이름을 입력하세요", + )} />
@@ -183,7 +186,10 @@ function TenantCreatePage() { />
-