mirror of
https://github.com/SomboChea/ui
synced 2026-01-17 08:35:47 +07:00
fix: linter error fixed (#143)
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
cf050f234d
commit
74576bda12
@@ -16,11 +16,11 @@ export default class ErrorBoundary extends Component<ErrorProps, ErrorAppState>
|
||||
this.state = { hasError: false, error: null, info: null };
|
||||
}
|
||||
|
||||
componentDidCatch(error, info) {
|
||||
public componentDidCatch(error, info) {
|
||||
this.setState({ hasError: true, error, info });
|
||||
}
|
||||
|
||||
render() {
|
||||
public render(): JSX.Element {
|
||||
const { hasError, error, info } = this.state;
|
||||
const { children } = this.props;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user