feat: error reporting callback (#530)

This commit is contained in:
Adam Uhlíř
2022-09-09 04:07:40 -07:00
committed by GitHub
parent d42d440f85
commit 0c74dae4e8
3 changed files with 20 additions and 4 deletions
+10 -2
View File
@@ -22,9 +22,17 @@ interface Props {
lockedApiSettings?: boolean
isDesktop?: boolean
desktopUrl?: string
errorReporting?: (err: Error) => void
}
const App = ({ beeApiUrl, beeDebugApiUrl, lockedApiSettings, isDesktop, desktopUrl }: Props): ReactElement => {
const App = ({
beeApiUrl,
beeDebugApiUrl,
lockedApiSettings,
isDesktop,
desktopUrl,
errorReporting,
}: Props): ReactElement => {
const mainApp = (
<div className="App">
<ThemeProvider theme={theme}>
@@ -46,7 +54,7 @@ const App = ({ beeApiUrl, beeDebugApiUrl, lockedApiSettings, isDesktop, desktopU
<Router>
<>
<CssBaseline />
<Dashboard>
<Dashboard errorReporting={errorReporting}>
<BaseRouter />
</Dashboard>
</>