From e13ad725bf3925d760b8093550c6abae2a74b441 Mon Sep 17 00:00:00 2001 From: Max Eliseev Date: Mon, 18 Apr 2022 15:53:16 +0500 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA?= =?UTF-8?q?=D1=82=D0=BD=D1=8B=D0=B5=20Props=20=D1=83=20=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D0=B0=20ErrorCapturer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ErrorCapturer.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/ErrorCapturer.tsx b/src/components/ErrorCapturer.tsx index ef3dd85..c22a9cb 100644 --- a/src/components/ErrorCapturer.tsx +++ b/src/components/ErrorCapturer.tsx @@ -1,7 +1,11 @@ -import {Component, ErrorInfo} from "react" +import {Component, ErrorInfo, ReactNode} from "react" import {logger} from "@gooditworks/monitoring" -class ErrorCapturer extends Component { +interface Props { + children: ReactNode +} + +class ErrorCapturer extends Component { // eslint-disable-next-line class-methods-use-this componentDidCatch(error: Error, info: ErrorInfo) { logger.captureException(error, {info})