File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
+ import PropTypes from 'prop-types' ;
2
3
import { connect } from 'react-redux' ;
3
4
import { showNotification } from 'baselayer/components/Notifications' ;
4
5
/* eslint-disable */
@@ -71,8 +72,8 @@ class Plot extends Component {
71
72
}
72
73
}
73
74
Plot . propTypes = {
74
- url : React . PropTypes . string . isRequired ,
75
- dispatch : React . PropTypes . func . isRequired
75
+ url : PropTypes . string . isRequired ,
76
+ dispatch : PropTypes . func . isRequired
76
77
} ;
77
78
78
79
Plot = connect ( ) ( Plot ) ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ import PropTypes from 'prop-types' ;
2
3
3
4
const Progress = ( props ) => {
4
5
let response = '' ;
@@ -25,7 +26,7 @@ const Progress = (props) => {
25
26
} ;
26
27
27
28
Progress . propTypes = {
28
- type : React . PropTypes . string . isRequired
29
+ type : PropTypes . string . isRequired
29
30
} ;
30
31
31
32
export default Progress ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ import PropTypes from 'prop-types' ;
2
3
import { connect } from 'react-redux' ;
3
4
4
5
let UserProfile = props => (
5
6
< div style = { props . style } > { props . profile . username } </ div >
6
7
) ;
7
8
UserProfile . propTypes = {
8
- style : React . PropTypes . object . isRequired ,
9
- profile : React . PropTypes . object . isRequired
9
+ style : PropTypes . object . isRequired ,
10
+ profile : PropTypes . object . isRequired
10
11
} ;
11
12
12
13
const mapStateToProps = state => (
You can’t perform that action at this time.
0 commit comments