Import PropTypes from prop-types
Prepare for React 16.
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user