File tree Expand file tree Collapse file tree 4 files changed +15
-11
lines changed Expand file tree Collapse file tree 4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 4141 "babel-preset-es2015" : " ^6.18.0" ,
4242 "babel-preset-react" : " ^6.16.0" ,
4343 "babel-preset-stage-2" : " ^6.18.0" ,
44+ "create-react-class" : " ^15.5.2" ,
4445 "exports-loader" : " ^0.6.2" ,
4546 "file-loader" : " ^0.10.1" ,
4647 "highlight.js" : " ^9.10.0" ,
4950 "mocha" : " ^3.2.0" ,
5051 "mock-require" : " ^2.0.1" ,
5152 "nightwatch" : " ^0.9.6" ,
53+ "prop-types" : " ^15.5.8" ,
5254 "raw-loader" : " ^0.5.1" ,
53- "react" : " ^15.4.2" ,
54- "react-addons-test-utils" : " ^15.4.2" ,
55- "react-dom" : " ^15.4.2" ,
55+ "react" : " ^15.5.4" ,
56+ "react-dom" : " ^15.5.4" ,
5657 "react-highlight" : " ^0.9.0" ,
5758 "sinon" : " ^2.0.0" ,
5859 "webpack" : " ^2.2.1" ,
Original file line number Diff line number Diff line change 11var React = require ( 'react' ) ;
2+ var createReactClass = require ( 'create-react-class' ) ;
23
3- var RedrawOnPrint = React . createClass ( {
4+ var RedrawOnPrint = createReactClass ( {
45 componentDidMount ( ) {
56 // This is a listiner bind to the print media query
67 // it call reflow since highcharts doesn't reflow upon print
Original file line number Diff line number Diff line change 11var React = require ( 'react' ) ;
2+ var createReactClass = require ( 'create-react-class' ) ;
3+ var PropTypes = require ( 'prop-types' ) ;
24var win = typeof global === 'undefined' ? window : global ;
35
46module . exports = function ( chartType , Highcharts ) {
57 var displayName = 'Highcharts' + chartType ;
6- var result = React . createClass ( {
8+ var result = createReactClass ( {
79 displayName : displayName ,
810
911 propTypes : {
10- config : React . PropTypes . object . isRequired ,
11- isPureConfig : React . PropTypes . bool ,
12- neverReflow : React . PropTypes . bool ,
13- callback : React . PropTypes . func ,
14- domProps : React . PropTypes . object
12+ config : PropTypes . object ,
13+ isPureConfig : PropTypes . bool ,
14+ neverReflow : PropTypes . bool ,
15+ callback : PropTypes . func ,
16+ domProps : PropTypes . object
1517 } ,
1618
1719 defaultProps : {
Original file line number Diff line number Diff line change 11var React = require ( 'react' ) ;
22var assert = require ( 'assert' ) ;
3- var TestUtils = require ( 'react-addons- test-utils' ) ;
3+ var TestUtils = require ( 'react-dom/ test-utils' ) ;
44var mock = require ( 'mock-require' ) ;
55var sinon = require ( 'sinon' ) ;
66
You can’t perform that action at this time.
0 commit comments