fix: 平台构建
This commit is contained in:
@@ -301,9 +301,9 @@ export function UsersPage({ session, operations, initialState }: UsersPageProps)
|
||||
) : !loading && !loadError && filteredUsers.length === 0 ? (
|
||||
<EmptyState title="没有匹配用户" description="调整名称、角色或状态筛选后再试。" actionLabel="清除筛选" onAction={() => { setKeyword(""); setRoleFilter(""); setStatusFilter("all"); }} />
|
||||
) : (
|
||||
<div className="resource-list user-management-list">
|
||||
<div className="resource-list access-list">
|
||||
{filteredUsers.map((user) => (
|
||||
<article key={user.id} className="resource-list-item user-management-item">
|
||||
<article key={user.id} className="resource-list-item access-list-row">
|
||||
<div>
|
||||
<strong>{user.displayName}</strong>
|
||||
<span className="provider-id">{user.email ?? user.id}</span>
|
||||
@@ -314,7 +314,7 @@ export function UsersPage({ session, operations, initialState }: UsersPageProps)
|
||||
</span>
|
||||
<span>{user.roles.map(roleLabel).join(" / ")}</span>
|
||||
<span>{profileSummary(user)}</span>
|
||||
<div className="user-actions" aria-label={`${user.displayName} 状态操作`}>
|
||||
<div className="console-row-actions" aria-label={`${user.displayName} 状态操作`}>
|
||||
<button type="button" className="theme-upload" disabled={mutationDisabled || operations.isPending(user.id, "编辑用户")} aria-label={`编辑 ${user.displayName}`} onClick={() => startEdit(user)}>
|
||||
<UserPen size={13} />
|
||||
编辑
|
||||
|
||||
Reference in New Issue
Block a user