mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
migrate ui-components from flow to typescript
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user