@@ -3,7 +3,6 @@ import { ThemeProvider } from '@material-ui/core/styles'
33import { SnackbarProvider } from 'notistack'
44import React , { ReactElement } from 'react'
55import { HashRouter as Router } from 'react-router-dom'
6- import * as Sentry from '@sentry/react'
76import './App.css'
87import Dashboard from './layout/Dashboard'
98import { Provider as BeeProvider } from './providers/Bee'
@@ -16,9 +15,6 @@ import { Provider as TopUpProvider } from './providers/TopUp'
1615import { Provider as BalanceProvider } from './providers/WalletBalance'
1716import BaseRouter from './routes'
1817import { theme } from './theme'
19- import { config } from './config'
20- import ItsBroken from './layout/ItsBroken'
21- import { initSentry } from './utils/sentry'
2218
2319interface Props {
2420 beeApiUrl ?: string
@@ -27,11 +23,6 @@ interface Props {
2723 isBeeDesktop ?: boolean
2824}
2925
30- if ( config . SENTRY_KEY ) {
31- // eslint-disable-next-line no-console
32- initSentry ( ) . catch ( e => console . error ( e ) )
33- }
34-
3526const App = ( { beeApiUrl, beeDebugApiUrl, lockedApiSettings, isBeeDesktop } : Props ) : ReactElement => {
3627 const mainApp = (
3728 < div className = "App" >
@@ -71,18 +62,6 @@ const App = ({ beeApiUrl, beeDebugApiUrl, lockedApiSettings, isBeeDesktop }: Pro
7162 </ div >
7263 )
7364
74- // Displays Report Dialog when some component crashes
75- if ( config . SENTRY_KEY ) {
76- return (
77- < Sentry . ErrorBoundary
78- showDialog
79- fallback = { ( { error, componentStack, resetError } ) => < ItsBroken message = { error . message } /> }
80- >
81- { mainApp }
82- </ Sentry . ErrorBoundary >
83- )
84- }
85-
8665 return mainApp
8766}
8867
0 commit comments