Fix eslint & flow errors

Prepares for the latest eslint & flow-related npm packages which cause
these errors.
This commit is contained in:
Lyubo Marinov
2017-11-16 12:27:54 -06:00
parent 30be46326a
commit 8fd91573fc
21 changed files with 69 additions and 45 deletions
@@ -1,3 +1,5 @@
// @flow
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
@@ -11,7 +13,7 @@ declare var APP: Object;
/**
* Implements a dialog for remote control authorization.
*/
class RemoteControlAuthorizationDialog extends Component {
class RemoteControlAuthorizationDialog extends Component<*> {
/**
* RemoteControlAuthorizationDialog component's property types.
*
@@ -105,6 +107,8 @@ class RemoteControlAuthorizationDialog extends Component {
);
}
_onCancel: () => boolean;
/**
* Notifies the remote control module about the denial of the remote control
* request.
@@ -119,6 +123,8 @@ class RemoteControlAuthorizationDialog extends Component {
return true;
}
_onSubmit: () => boolean;
/**
* Notifies the remote control module that the remote control request is
* accepted.