forked from baron/baron-sso
i18n 누락 키 보완 및 biome 포맷 정리
This commit is contained in:
@@ -111,7 +111,7 @@ function AppLayout() {
|
||||
const currentRole = resolveProfileRole(
|
||||
auth.user?.profile as Record<string, unknown> | undefined,
|
||||
);
|
||||
|
||||
|
||||
// Use profile.role from API if available, otherwise fallback to local role
|
||||
const displayRoleKey = profile?.role || currentRole;
|
||||
|
||||
@@ -331,12 +331,18 @@ function AppLayout() {
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex items-center pt-1">
|
||||
<Badge variant="outline" className="text-[10px] px-2 py-0">
|
||||
{t(`ui.common.role.${displayRoleKey}`, displayRoleKey.toUpperCase())}
|
||||
<Badge
|
||||
variant="outline"
|
||||
className="text-[10px] px-2 py-0"
|
||||
>
|
||||
{t(
|
||||
`ui.common.role.${displayRoleKey}`,
|
||||
displayRoleKey.toUpperCase(),
|
||||
)}
|
||||
</Badge>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<button
|
||||
type="button"
|
||||
role="menuitem"
|
||||
@@ -349,7 +355,7 @@ function AppLayout() {
|
||||
<UserIcon size={16} className="text-muted-foreground" />
|
||||
<span>{t("ui.dev.profile.title", "내 정보")}</span>
|
||||
</button>
|
||||
|
||||
|
||||
<button
|
||||
type="button"
|
||||
role="menuitem"
|
||||
|
||||
Reference in New Issue
Block a user