fix: replace stray role reference in system settings tab with inline placeholder

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-04-29 08:04:22 +02:00
parent ba95723b61
commit ecd8e3679f

View File

@@ -1546,15 +1546,31 @@ export default function Settings() {
</tbody>
</table>
) : (
<Skeleton
name="settings-permissions"
loading={
!role.permissions || role.permissions.length === 0
}
fixture={<span>...</span>}
<div
style={{
padding: "1rem",
display: "flex",
flexDirection: "column",
gap: "0.5rem",
}}
>
<span>{role.permissions?.length || 0} oprávnění</span>
</Skeleton>
<div
style={{
height: "0.75rem",
background: "#e0e0e0",
borderRadius: "4px",
width: "60%",
}}
/>
<div
style={{
height: "0.75rem",
background: "#e0e0e0",
borderRadius: "4px",
width: "40%",
}}
/>
</div>
)}
</div>
</motion.div>