File tree 2 files changed +9
-5
lines changed 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 34
34
"react-hot-loader" : " 1.3.0" ,
35
35
"webpack" : " 1.13.1" ,
36
36
"webpack-dev-server" : " 1.14.1"
37
+ },
38
+ "dependencies" : {
39
+ "prop-types" : " 15.5.10"
37
40
}
38
41
}
Original file line number Diff line number Diff line change 2
2
* @copyright © 2015, Rick Wong. All rights reserved.
3
3
*/
4
4
var React = require ( "react" ) ;
5
+ var PropTypes = require ( "prop-types" ) ;
5
6
var assign = Object . assign ? Object . assign : React . __spread ;
6
7
var refCounter = 0 ;
7
8
@@ -11,11 +12,11 @@ var refCounter = 0;
11
12
var InlineCss = React . createClass ( {
12
13
displayName : "InlineCss" ,
13
14
propTypes : {
14
- namespace : React . PropTypes . string ,
15
- componentName : React . PropTypes . string ,
16
- stylesheet : React . PropTypes . string . isRequired ,
17
- className : React . PropTypes . string ,
18
- wrapper : React . PropTypes . string
15
+ namespace : PropTypes . string ,
16
+ componentName : PropTypes . string ,
17
+ stylesheet : PropTypes . string . isRequired ,
18
+ className : PropTypes . string ,
19
+ wrapper : PropTypes . string
19
20
} ,
20
21
_transformSheet : function ( stylesheet , componentName , namespace ) {
21
22
return stylesheet .
You can’t perform that action at this time.
0 commit comments