fix eslint and flow warnings

This commit is contained in:
Sebastian Sdorra
2018-10-17 14:11:28 +02:00
parent 3429f17670
commit 1888a58cb0
14 changed files with 45 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
//@flow
import React from "react";
import classNames from "classnames";
import { Link, withRouter } from "react-router-dom";
import { withRouter } from "react-router-dom";
export type ButtonProps = {
label: string,
@@ -17,8 +17,9 @@ export type ButtonProps = {
type Props = ButtonProps & {
type: string,
color: string,
// context prop
history: History
history: any
};
class Button extends React.Component<Props> {