File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 10
10
"url" : " https://github.com/benjeffery/react-plotlyjs.git"
11
11
},
12
12
"dependencies" : {
13
- "lodash.clonedeep" : " ^4.5.0"
13
+ "lodash.clonedeep" : " ^4.5.0" ,
14
+ "prop-types" : " ^15.5.10"
14
15
},
15
16
"devDependencies" : {
16
17
"babel-cli" : " ^6.22.2" ,
Original file line number Diff line number Diff line change
1
+ import PropTypes from 'prop-types' ;
1
2
import React from 'react' ;
2
3
import cloneDeep from 'lodash.clonedeep' ;
3
4
4
5
let createPlotlyComponent = ( plotlyInstance ) => React . createClass ( {
5
6
displayName : 'Plotly' ,
6
7
propTypes : {
7
- data : React . PropTypes . array ,
8
- layout : React . PropTypes . object ,
9
- config : React . PropTypes . object ,
10
- onClick : React . PropTypes . func ,
11
- onBeforeHover : React . PropTypes . func ,
12
- onHover : React . PropTypes . func ,
13
- onUnHover : React . PropTypes . func ,
14
- onSelected : React . PropTypes . func
8
+ data : PropTypes . array ,
9
+ layout : PropTypes . object ,
10
+ config : PropTypes . object ,
11
+ onClick : PropTypes . func ,
12
+ onBeforeHover : PropTypes . func ,
13
+ onHover : PropTypes . func ,
14
+ onUnHover : PropTypes . func ,
15
+ onSelected : PropTypes . func
15
16
} ,
16
17
17
18
attachListeners : function ( ) {
You can’t perform that action at this time.
0 commit comments