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
+2 -1
View File
@@ -21,6 +21,7 @@ const useStyles = makeStyles((theme: Theme) =>
interface Props {
children?: ReactElement
errorReporting?: (err: Error) => void
}
const Dashboard = (props: Props): ReactElement => {
@@ -119,7 +120,7 @@ const Dashboard = (props: Props): ReactElement => {
<SideBar />
<Container className={classes.content}>
{' '}
<ErrorBoundary>{content}</ErrorBoundary>
<ErrorBoundary errorReporting={props.errorReporting}>{content}</ErrorBoundary>
</Container>
</div>
)