diff --git a/static/js/components/Plot.jsx b/static/js/components/Plot.jsx index 3d2335e..2a7fe6f 100644 --- a/static/js/components/Plot.jsx +++ b/static/js/components/Plot.jsx @@ -1,4 +1,5 @@ import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { showNotification } from 'baselayer/components/Notifications'; /* eslint-disable */ @@ -71,8 +72,8 @@ class Plot extends Component { } } Plot.propTypes = { - url: React.PropTypes.string.isRequired, - dispatch: React.PropTypes.func.isRequired + url: PropTypes.string.isRequired, + dispatch: PropTypes.func.isRequired }; Plot = connect()(Plot); diff --git a/static/js/components/Progress.jsx b/static/js/components/Progress.jsx index 241e227..3643caa 100644 --- a/static/js/components/Progress.jsx +++ b/static/js/components/Progress.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import PropTypes from 'prop-types'; const Progress = (props) => { let response = ''; @@ -25,7 +26,7 @@ const Progress = (props) => { }; Progress.propTypes = { - type: React.PropTypes.string.isRequired + type: PropTypes.string.isRequired }; export default Progress; diff --git a/static/js/components/UserProfile.jsx b/static/js/components/UserProfile.jsx index 36d67c6..71febf2 100644 --- a/static/js/components/UserProfile.jsx +++ b/static/js/components/UserProfile.jsx @@ -1,12 +1,13 @@ import React from 'react'; +import PropTypes from 'prop-types'; import { connect } from 'react-redux'; let UserProfile = props => (
{props.profile.username}
); UserProfile.propTypes = { - style: React.PropTypes.object.isRequired, - profile: React.PropTypes.object.isRequired + style: PropTypes.object.isRequired, + profile: PropTypes.object.isRequired }; const mapStateToProps = state => (