11var React = require ( 'react' ) ;
2+ var createReactClass = require ( 'create-react-class' ) ;
3+ var PropTypes = require ( 'prop-types' ) ;
24var ReactDOM = require ( 'react-dom' ) ;
35var Constants = require ( './constants' ) ;
46var Helpers = require ( './helpers' ) ;
@@ -24,17 +26,17 @@ var whichTransitionEvent = function() {
2426 return transition ;
2527} ;
2628
27- var NotificationItem = React . createClass ( {
29+ var NotificationItem = createReactClass ( {
2830
2931 propTypes : {
30- notification : React . PropTypes . object ,
31- getStyles : React . PropTypes . object ,
32- onRemove : React . PropTypes . func ,
33- allowHTML : React . PropTypes . bool ,
34- noAnimation : React . PropTypes . bool ,
35- children : React . PropTypes . oneOfType ( [
36- React . PropTypes . string ,
37- React . PropTypes . element
32+ notification : PropTypes . object ,
33+ getStyles : PropTypes . object ,
34+ onRemove : PropTypes . func ,
35+ allowHTML : PropTypes . bool ,
36+ noAnimation : PropTypes . bool ,
37+ children : PropTypes . oneOfType ( [
38+ PropTypes . string ,
39+ PropTypes . element
3840 ] )
3941 } ,
4042
0 commit comments