@@ -28,7 +28,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
28
28
29
29
function _objectSpread ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] != null ? arguments [ i ] : { } ; if ( i % 2 ) { ownKeys ( Object ( source ) , true ) . forEach ( function ( key ) { _defineProperty ( target , key , source [ key ] ) ; } ) ; } else if ( Object . getOwnPropertyDescriptors ) { Object . defineProperties ( target , Object . getOwnPropertyDescriptors ( source ) ) ; } else { ownKeys ( Object ( source ) ) . forEach ( function ( key ) { Object . defineProperty ( target , key , Object . getOwnPropertyDescriptor ( source , key ) ) ; } ) ; } } return target ; }
30
30
31
- function _typeof ( obj ) { if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof = function _typeof ( obj ) { return typeof obj ; } ; } else { _typeof = function _typeof ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof ( obj ) ; }
31
+ function _typeof ( obj ) { "@babel/helpers - typeof" ; if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof = function _typeof ( obj ) { return typeof obj ; } ; } else { _typeof = function _typeof ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof ( obj ) ; }
32
32
33
33
function _defineProperty ( obj , key , value ) { if ( key in obj ) { Object . defineProperty ( obj , key , { value : value , enumerable : true , configurable : true , writable : true } ) ; } else { obj [ key ] = value ; } return obj ; }
34
34
@@ -86,7 +86,7 @@ function FontAwesomeIcon(props) {
86
86
var iconLookup = normalizeIconArgs ( iconArgs ) ;
87
87
var transform = objectWithKey ( 'transform' , typeof props . transform === 'string' ? _fontawesomeSvgCore . parse . transform ( props . transform ) : props . transform ) ;
88
88
var mask = objectWithKey ( 'mask' , normalizeIconArgs ( maskArgs ) ) ;
89
- var renderedIcon = ( 0 , _fontawesomeSvgCore . icon ) ( iconLookup , _objectSpread ( { } , transform , { } , mask ) ) ;
89
+ var renderedIcon = ( 0 , _fontawesomeSvgCore . icon ) ( iconLookup , _objectSpread ( _objectSpread ( { } , transform ) , mask ) ) ;
90
90
91
91
if ( ! renderedIcon ) {
92
92
( 0 , _logger [ "default" ] ) ( "ERROR: icon not found for icon = " , iconArgs ) ;
@@ -146,7 +146,9 @@ FontAwesomeIcon.propTypes = {
146
146
color : _propTypes [ "default" ] . string ,
147
147
secondaryColor : _propTypes [ "default" ] . string ,
148
148
secondaryOpacity : _propTypes [ "default" ] . number ,
149
- style : _propTypes [ "default" ] . oneOfType ( [ _propTypes [ "default" ] . shape ( _objectSpread ( { } , _reactNative . ViewPropTypes . style ) ) , _propTypes [ "default" ] . array ] ) ,
149
+ style : _propTypes [ "default" ] . oneOfType ( [ _propTypes [ "default" ] . shape ( {
150
+ style : _propTypes [ "default" ] . any
151
+ } ) , _propTypes [ "default" ] . array ] ) ,
150
152
icon : _propTypes [ "default" ] . oneOfType ( [ _propTypes [ "default" ] . object , _propTypes [ "default" ] . array , _propTypes [ "default" ] . string ] ) ,
151
153
mask : _propTypes [ "default" ] . oneOfType ( [ _propTypes [ "default" ] . object , _propTypes [ "default" ] . array , _propTypes [ "default" ] . string ] ) ,
152
154
transform : _propTypes [ "default" ] . oneOfType ( [ _propTypes [ "default" ] . string , _propTypes [ "default" ] . object ] )
0 commit comments