forked from baron/baron-sso
린트 적용
This commit is contained in:
@@ -100,7 +100,12 @@ const RoleSwitcher: FC = () => {
|
||||
}}
|
||||
>
|
||||
{(
|
||||
["super_admin", "tenant_admin", "rp_admin", "tenant_member"] as const
|
||||
[
|
||||
"super_admin",
|
||||
"tenant_admin",
|
||||
"rp_admin",
|
||||
"tenant_member",
|
||||
] as const
|
||||
).map((role) => (
|
||||
<button
|
||||
key={role}
|
||||
@@ -120,8 +125,12 @@ const RoleSwitcher: FC = () => {
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<span>{roleLabels[role] ?? role.toUpperCase().replace("_", " ")}</span>
|
||||
{currentRole === role && <span style={{ marginLeft: "8px" }}>✅</span>}
|
||||
<span>
|
||||
{roleLabels[role] ?? role.toUpperCase().replace("_", " ")}
|
||||
</span>
|
||||
{currentRole === role && (
|
||||
<span style={{ marginLeft: "8px" }}>✅</span>
|
||||
)}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user