feat(mui): migrate Forbidden off admin-* CSS

Re-skins the 403 fallback with MUI Box + kit EmptyState + kit Button
(component=Link). Czech text and routing preserved verbatim.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-06-07 08:37:09 +02:00
parent 088fe39bab
commit 85d7ffaa14

View File

@@ -1,16 +1,26 @@
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import Box from "@mui/material/Box";
import { EmptyState, Button } from "../ui";
export default function Forbidden() { export default function Forbidden() {
return ( return (
<div <Box
className="admin-empty-state" sx={{
style={{ minHeight: "60vh", justifyContent: "center" }} minHeight: "60vh",
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
> >
<h2>403</h2> <EmptyState
<p>Nemáte oprávnění pro přístup k této stránce.</p> title="403"
<Link to="/" className="admin-btn admin-btn-primary"> description="Nemáte oprávnění pro přístup k této stránce."
Zpět na Dashboard action={
</Link> <Button component={Link} to="/">
</div> Zpět na Dashboard
</Button>
}
/>
</Box>
); );
} }