From 9fed5e92d03279c592ab04e108c4d9e49936a014 Mon Sep 17 00:00:00 2001 From: Abhishek Jakhar Date: Thu, 29 Oct 2020 00:02:06 +0530 Subject: [PATCH] chore: remove the usage of SFC --- packages/core/src/layout/ErrorBoundary/ErrorBoundary.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/layout/ErrorBoundary/ErrorBoundary.tsx b/packages/core/src/layout/ErrorBoundary/ErrorBoundary.tsx index fd267777a0..cc48e26b1d 100644 --- a/packages/core/src/layout/ErrorBoundary/ErrorBoundary.tsx +++ b/packages/core/src/layout/ErrorBoundary/ErrorBoundary.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import React, { ComponentClass, Component, SFC, ErrorInfo } from 'react'; +import React, { ComponentClass, Component, ErrorInfo } from 'react'; type Props = { slackChannel?: string; @@ -60,9 +60,10 @@ export const ErrorBoundary: ComponentClass< type EProps = { error?: Error; slackChannel?: string; + children?: React.ReactNode; }; -const Error: SFC = ({ slackChannel }) => { +const Error = ({ slackChannel }: EProps) => { return (
Something went wrong here.{' '}