in src/components/ErrorBoundary/index.tsx [20:38]
componentDidCatch(error) {
const errorMessage = `${error.name}: ${error.message}`;
this.setState({ error: errorMessage });
this.props.enqueueSnackbar(errorMessage, {
autoHideDuration: 5000,
content: (key, message) => (
<Snackbar
snackbarKey={key}
text={String(message)}
handleClose={() => this.props.closeSnackbar(key)}
variant="error"
/>
),
anchorOrigin: {
vertical: 'top',
horizontal: 'right',
},
});
}