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,3 +1,4 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
/**
@@ -16,28 +17,28 @@ export default class RemoteVideoMenuButton extends Component {
* Text to display within the component that describes the onClick
* action.
*/
buttonText: React.PropTypes.string,
buttonText: PropTypes.string,
/**
* Additional CSS classes to add to the component.
*/
displayClass: React.PropTypes.string,
displayClass: PropTypes.string,
/**
* The CSS classes for the icon that will display within the component.
*/
iconClass: React.PropTypes.string,
iconClass: PropTypes.string,
/**
* The id attribute to be added to the component's DOM for retrieval
* when querying the DOM. Not used directly by the component.
*/
id: React.PropTypes.string,
id: PropTypes.string,
/**
* Callback to invoke when the component is clicked.
*/
onClick: React.PropTypes.func
onClick: PropTypes.func
};
/**