Fix ErrorBoundary background

This commit is contained in:
Reckless_Satoshi 2023-04-17 03:14:38 -07:00
parent c2110d1620
commit e3b7f1f268
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -1,3 +1,4 @@
import { Paper } from '@mui/material';
import React, { Component } from 'react'; import React, { Component } from 'react';
interface ErrorBoundaryProps { interface ErrorBoundaryProps {
@ -30,8 +31,8 @@ export default class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
render() { render() {
if (this.state.hasError) { if (this.state.hasError) {
return ( return (
<div> <div style={{ overflow: 'auto', height: '100%', width: '100%', background: 'white' }}>
<h1>Something went wrong. Restarting app in 10 seconds...</h1> <h2>Something is borked! Restarting app in 10 seconds...</h2>
<p> <p>
<b>Error:</b> {this.state.error.name} <b>Error:</b> {this.state.error.name}
</p> </p>