File tree 5 files changed +20
-9
lines changed 5 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 61
61
"react-addons-test-utils" : " ^15.0.0" ,
62
62
"react-dom" : " ^15.0.0" ,
63
63
"react-modal" : " ^1.3.0" ,
64
+ "react-test-renderer" : " ^15.5.4" ,
64
65
"rimraf" : " ^2.5.2" ,
65
66
"webpack" : " ^1.13.1" ,
66
67
"webpack-dev-server" : " ^1.14.1"
67
68
},
68
69
"dependencies" : {
69
70
"classnames" : " ^2.2.0" ,
70
- "js-stylesheet" : " ^0.0.1"
71
+ "create-react-class" : " ^15.5.2" ,
72
+ "js-stylesheet" : " ^0.0.1" ,
73
+ "prop-types" : " ^15.5.8"
71
74
},
72
75
"jest" : {
73
76
"testPathDirs" : [
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' ;
3
+ import createReactClass from 'create-react-class' ;
2
4
import { findDOMNode } from 'react-dom' ;
3
5
import cx from 'classnames' ;
4
6
5
- module . exports = React . createClass ( {
7
+ module . exports = createReactClass ( {
6
8
displayName : 'Tab' ,
7
9
8
10
propTypes : {
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' ;
3
+ import createReactClass from 'create-react-class' ;
2
4
import cx from 'classnames' ;
3
5
import Tab from './Tab' ;
4
6
@@ -20,7 +22,7 @@ function renderChildren(props) {
20
22
} ) ;
21
23
}
22
24
23
- module . exports = React . createClass ( {
25
+ module . exports = createReactClass ( {
24
26
displayName : 'TabList' ,
25
27
26
28
propTypes : {
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' ;
3
+ import createReactClass from 'create-react-class' ;
2
4
import cx from 'classnames' ;
3
5
4
- module . exports = React . createClass ( {
6
+ module . exports = createReactClass ( {
5
7
displayName : 'TabPanel' ,
6
8
7
9
propTypes : {
Original file line number Diff line number Diff line change 1
- import React , { PropTypes , cloneElement } from 'react' ;
1
+ import React , { cloneElement } from 'react' ;
2
+ import PropTypes from 'prop-types' ;
3
+ import createReactClass from 'create-react-class' ;
2
4
import { findDOMNode } from 'react-dom' ;
3
5
import cx from 'classnames' ;
4
6
import jss from 'js-stylesheet' ;
@@ -18,7 +20,7 @@ function isTabDisabled(node) {
18
20
19
21
let useDefaultStyles = true ;
20
22
21
- module . exports = React . createClass ( {
23
+ module . exports = createReactClass ( {
22
24
displayName : 'Tabs' ,
23
25
24
26
propTypes : {
You can’t perform that action at this time.
0 commit comments