chore: remove the usage of SFC

This commit is contained in:
Abhishek Jakhar
2020-10-29 00:02:06 +05:30
parent 3ca32f8b4b
commit 9fed5e92d0
@@ -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.{' '}