mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-19 04:31:35 +00:00
Fix ErrorBoundary background
This commit is contained in:
parent
c2110d1620
commit
e3b7f1f268
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user