Import PropTypes from prop-types

Prepare for React 16.
This commit is contained in:
Lyubo Marinov
2017-09-27 16:23:31 -05:00
parent 9834e8ac7b
commit 2e2129fa44
104 changed files with 510 additions and 417 deletions

View File

@@ -1,5 +1,6 @@
/* @flow */
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { translate } from '../../base/i18n';
@@ -34,7 +35,7 @@ class UnsupportedDesktopBrowser extends Component {
* @public
* @type {Function}
*/
t: React.PropTypes.func
t: PropTypes.func
};
/**

View File

@@ -1,5 +1,6 @@
/* @flow */
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
@@ -57,7 +58,7 @@ class UnsupportedMobileBrowser extends Component {
* @private
* @type {string}
*/
_room: React.PropTypes.string,
_room: PropTypes.string,
/**
* The function to translate human-readable text.
@@ -65,7 +66,7 @@ class UnsupportedMobileBrowser extends Component {
* @public
* @type {Function}
*/
t: React.PropTypes.func
t: PropTypes.func
};
/**