Merge pull request #3148 from abhishekjakhar/chore/error-boundary-types

chore: remove the usage of SFC in Error component
This commit is contained in:
Ben Lambert
2020-10-29 11:53:56 +01:00
committed by GitHub
@@ -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<EProps> = ({ slackChannel }) => {
const Error = ({ slackChannel }: EProps) => {
return (
<div>
Something went wrong here.{' '}