1
0
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:
Gagan Deep
2019-10-03 01:22:27 +05:30
committed by Juan Picado @jotadeveloper
parent cf050f234d
commit 74576bda12
5 changed files with 17 additions and 17 deletions

View File

@@ -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;