From 04a70eeb7fd93b1781f3958bba9efa23f2f59e31 Mon Sep 17 00:00:00 2001 From: YeonV Date: Sun, 19 Jan 2025 16:14:48 +0100 Subject: [PATCH] add some styles to error boundary --- src/utils/ErrorBoundary.tsx | 132 +++++++++++++++++++++--------------- 1 file changed, 76 insertions(+), 56 deletions(-) diff --git a/src/utils/ErrorBoundary.tsx b/src/utils/ErrorBoundary.tsx index aba0f76a..98ff1c12 100644 --- a/src/utils/ErrorBoundary.tsx +++ b/src/utils/ErrorBoundary.tsx @@ -1,3 +1,4 @@ +import { Box, CssBaseline } from '@mui/material' import { Component, ErrorInfo, ReactNode } from 'react' interface Props { @@ -25,70 +26,89 @@ class ErrorBoundary extends Component { render() { if (this.state.hasError) { return ( -
-

Something went wrong

-

- Deleting the browser's frontend-data might help, -
- if there is old config data left. -

-

Refresh page after clearing data...

- -
- -
+

Sorry

+

+ Try refresh first. If the problem persists, clear your browser + data. +

+ +
+ + + ) }