diff --git a/src/admin/components/ErrorBoundary.tsx b/src/admin/components/ErrorBoundary.tsx index 3b70168..3eaaebb 100644 --- a/src/admin/components/ErrorBoundary.tsx +++ b/src/admin/components/ErrorBoundary.tsx @@ -1,4 +1,7 @@ import { Component, type ReactNode, type ErrorInfo } from "react"; +import Box from "@mui/material/Box"; +import Typography from "@mui/material/Typography"; +import { Button } from "../ui"; interface Props { children: ReactNode; @@ -22,19 +25,25 @@ export default class ErrorBoundary extends Component { render() { if (this.state.hasError) { return ( -
-

Něco se pokazilo

-

{this.state.error?.message}

- -
+ + ); } return this.props.children;