From 924a9990798e51f48244535836be4559cc597f9a Mon Sep 17 00:00:00 2001 From: Sebastian Qvarfordt Date: Tue, 31 Mar 2020 13:07:21 +0200 Subject: [PATCH] prettier --- .../src/layout/ErrorBoundary/ErrorBoundary.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/core/src/layout/ErrorBoundary/ErrorBoundary.tsx b/packages/core/src/layout/ErrorBoundary/ErrorBoundary.tsx index 6578cc94dd..97738ac761 100644 --- a/packages/core/src/layout/ErrorBoundary/ErrorBoundary.tsx +++ b/packages/core/src/layout/ErrorBoundary/ErrorBoundary.tsx @@ -16,7 +16,6 @@ import React, { ComponentClass, Component, SFC } from 'react'; - type Props = { slackChannel: string; }; @@ -25,9 +24,12 @@ type State = { error?: Error; errorInfo?: string; onError?: (error: Error, errorInfo: string) => null; -} +}; -const ErrorBoundary: ComponentClass = class ErrorBoundary extends Component { +const ErrorBoundary: ComponentClass< + Props, + State +> = class ErrorBoundary extends Component { constructor(props) { super(props); @@ -35,7 +37,7 @@ const ErrorBoundary: ComponentClass = class ErrorBoundary extends error: undefined, errorInfo: undefined, onError: props.onError, - } + }; } componentDidCatch(error, errorInfo) { @@ -61,7 +63,7 @@ const ErrorBoundary: ComponentClass = class ErrorBoundary extends ); } -} +}; export default ErrorBoundary; @@ -69,7 +71,7 @@ type EProps = { error?: Error; errorInfo?: string; slackChannel: string; -} +}; const Error: SFC = ({ slackChannel }) => { return (