File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 57
57
" lint"
58
58
],
59
59
"dependencies" : {
60
+ "create-react-class" : " ^15.5.2" ,
61
+ "prop-types" : " ^15.5.8" ,
60
62
"rc-trigger" : " 1.x"
61
63
}
62
64
}
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 { placements } from './placements' ;
3
5
import Trigger from 'rc-trigger' ;
4
6
5
- const Tooltip = React . createClass ( {
7
+ const Tooltip = createReactClass ( {
6
8
propTypes : {
7
9
trigger : PropTypes . any ,
8
10
children : PropTypes . any ,
@@ -14,8 +16,8 @@ const Tooltip = React.createClass({
14
16
onVisibleChange : PropTypes . func ,
15
17
afterVisibleChange : PropTypes . func ,
16
18
overlay : PropTypes . oneOfType ( [
17
- React . PropTypes . node ,
18
- React . PropTypes . func ,
19
+ PropTypes . node ,
20
+ PropTypes . func ,
19
21
] ) . isRequired ,
20
22
overlayStyle : PropTypes . object ,
21
23
overlayClassName : PropTypes . string ,
You can’t perform that action at this time.
0 commit comments