File tree Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 88 * The second element can be, e.g., another row in the table.
99 * */
1010
11- import React , { Component , PropTypes } from 'react' ;
11+ import React , { Component } from 'react' ;
12+ import PropTypes from 'prop-types' ;
1213import colorScheme from './colorscheme' ;
1314
1415const cs = colorScheme ;
Original file line number Diff line number Diff line change 11import React , { Component } from 'react' ;
2+ import PropTypes from 'prop-types' ;
23import { connect } from 'react-redux' ;
34import { showNotification } from 'baselayer/components/Notifications' ;
45/* eslint-disable */
@@ -71,8 +72,8 @@ class Plot extends Component {
7172 }
7273}
7374Plot . propTypes = {
74- url : React . PropTypes . string . isRequired ,
75- dispatch : React . PropTypes . func . isRequired
75+ url : PropTypes . string . isRequired ,
76+ dispatch : PropTypes . func . isRequired
7677} ;
7778
7879Plot = connect ( ) ( Plot ) ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import PropTypes from 'prop-types' ;
23
34const Progress = ( props ) => {
45 let response = '' ;
@@ -25,7 +26,7 @@ const Progress = (props) => {
2526} ;
2627
2728Progress . propTypes = {
28- type : React . PropTypes . string . isRequired
29+ type : PropTypes . string . isRequired
2930} ;
3031
3132export default Progress ;
Original file line number Diff line number Diff line change 1- import React , { PropTypes } from 'react' ;
1+ import React from 'react' ;
2+ import PropTypes from 'prop-types' ;
23import { connect } from 'react-redux' ;
34import { reduxForm } from 'redux-form' ;
45
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import PropTypes from 'prop-types' ;
23import { connect } from 'react-redux' ;
34
45let UserProfile = props => (
56 < div style = { props . style } > { props . profile . username } </ div >
67) ;
78UserProfile . propTypes = {
8- style : React . PropTypes . object . isRequired ,
9- profile : React . PropTypes . object . isRequired
9+ style : PropTypes . object . isRequired ,
10+ profile : PropTypes . object . isRequired
1011} ;
1112
1213const mapStateToProps = state => (
You can’t perform that action at this time.
0 commit comments