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,12 +1,12 @@
import * as React from 'react';
import { binder } from '@scm-manager/ui-extensions';
import { EXTENSION_POINT } from './Avatar';
import React, { Component, ReactNode } from "react";
import { binder } from "@scm-manager/ui-extensions";
import { EXTENSION_POINT } from "./Avatar";
type Props = {
children: React.Node;
children: ReactNode;
};
class AvatarWrapper extends React.Component<Props> {
class AvatarWrapper extends Component<Props> {
render() {
if (binder.hasExtension(EXTENSION_POINT)) {
return <>{this.props.children}</>;