migrate ui-components from flow to typescript

This commit is contained in:
Sebastian Sdorra
2019-10-20 16:59:02 +02:00
parent c41efbdc4f
commit f49e17a3a7
151 changed files with 2039 additions and 25265 deletions

View File

@@ -1,9 +1,9 @@
import * as React from 'react';
import ErrorNotification from './ErrorNotification';
import React, { ReactNode } from "react";
import ErrorNotification from "./ErrorNotification";
type Props = {
fallback?: React.ComponentType<any>;
children: React.Node;
children: ReactNode;
};
type ErrorInfo = {
@@ -25,7 +25,7 @@ class ErrorBoundary extends React.Component<Props, State> {
// Catch errors in any components below and re-render with error message
this.setState({
error,
errorInfo,
errorInfo
});
}