Import PropTypes from prop-types

Prepare for React 16.
This commit is contained in:
Lyubo Marinov
2017-09-27 16:24:53 -05:00
parent 9834e8ac7b
commit 2e2129fa44
104 changed files with 510 additions and 417 deletions
@@ -1,3 +1,4 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
@@ -21,7 +22,7 @@ class ReloadButton extends Component {
*
* @type {Function}
*/
_reloadNow: React.PropTypes.func,
_reloadNow: PropTypes.func,
/**
* The function to translate human-readable text.
@@ -29,14 +30,14 @@ class ReloadButton extends Component {
* @public
* @type {Function}
*/
t: React.PropTypes.func,
t: PropTypes.func,
/**
* The translation key for the text in the button.
*
* @type {string}
*/
textKey: React.PropTypes.string.isRequired
textKey: PropTypes.string.isRequired
};
/**