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,5 +1,5 @@
import * as React from 'react';
import { Route, Link } from 'react-router-dom';
import * as React from "react";
import { Route, Link } from "react-router-dom";
type Props = {
to: string;
@@ -12,7 +12,7 @@ class PrimaryNavigationLink extends React.Component<Props> {
renderLink = (route: any) => {
const { to, label } = this.props;
return (
<li className={route.match ? 'is-active' : ''}>
<li className={route.match ? "is-active" : ""}>
<Link to={to}>{label}</Link>
</li>
);