Remove use of deprecated React.PropTypes

Replace all uses of React.PropTypes with PropTypes and importing PropTypes from
'prop-types'.
This commit is contained in:
Aidan Gauland 2017-12-26 14:03:18 +13:00
parent b5f6d97fa2
commit 35780f5ae0
123 changed files with 750 additions and 632 deletions

View file

@ -1,5 +1,6 @@
const React = require('react');
const ReactDom = require('react-dom');
import PropTypes from 'prop-types';
const Velocity = require('velocity-vector');
/**
@ -14,16 +15,16 @@ module.exports = React.createClass({
propTypes: {
// either a list of child nodes, or a single child.
children: React.PropTypes.any,
children: PropTypes.any,
// optional transition information for changing existing children
transition: React.PropTypes.object,
transition: PropTypes.object,
// a list of state objects to apply to each child node in turn
startStyles: React.PropTypes.array,
startStyles: PropTypes.array,
// a list of transition options from the corresponding startStyle
enterTransitionOpts: React.PropTypes.array,
enterTransitionOpts: PropTypes.array,
},
getDefaultProps: function() {