@@ -82,8 +82,7 @@ exports['default'] = function (Target, styles) {
82
82
83
83
if ( ( 0 , _lodashLangIsArray2 [ 'default' ] ) ( element . props . children ) ) {
84
84
element . props . children = element . props . children . map ( function ( node ) {
85
- // React.isValidElement
86
- if ( node instanceof element . constructor ) {
85
+ if ( _react2 [ 'default' ] . isValidElement ( node ) ) {
87
86
return linkClass ( node ) ;
88
87
} else {
89
88
return node ;
@@ -100,22 +99,22 @@ exports['default'] = function (Target, styles) {
100
99
} ;
101
100
102
101
return ( function ( _Target ) {
103
- _inherits ( CSSModules , _Target ) ;
102
+ _inherits ( _class , _Target ) ;
104
103
105
- function CSSModules ( ) {
106
- _classCallCheck ( this , CSSModules ) ;
104
+ function _class ( ) {
105
+ _classCallCheck ( this , _class ) ;
107
106
108
- _get ( Object . getPrototypeOf ( CSSModules . prototype ) , 'constructor' , this ) . apply ( this , arguments ) ;
107
+ _get ( Object . getPrototypeOf ( _class . prototype ) , 'constructor' , this ) . apply ( this , arguments ) ;
109
108
}
110
109
111
- _createClass ( CSSModules , [ {
110
+ _createClass ( _class , [ {
112
111
key : 'render' ,
113
112
value : function render ( ) {
114
- return linkClass ( _get ( Object . getPrototypeOf ( CSSModules . prototype ) , 'render' , this ) . call ( this ) ) ;
113
+ return linkClass ( _get ( Object . getPrototypeOf ( _class . prototype ) , 'render' , this ) . call ( this ) ) ;
115
114
}
116
115
} ] ) ;
117
116
118
- return CSSModules ;
117
+ return _class ;
119
118
} ) ( Target ) ;
120
119
} ;
121
120
0 commit comments