@@ -195,7 +195,7 @@ function camelize(string) {
195195 return string . substr ( 0 , 1 ) . toLowerCase ( ) + string . substr ( 1 ) ;
196196}
197197
198- var _excluded$1 = [ "style" ] ;
198+ var _excluded = [ "style" ] ;
199199
200200function capitalize ( val ) {
201201 return val . charAt ( 0 ) . toUpperCase ( ) + val . slice ( 1 ) ;
@@ -256,7 +256,7 @@ function convert(createElement, element) {
256256
257257 var _extraProps$style = extraProps . style ,
258258 existingStyle = _extraProps$style === void 0 ? { } : _extraProps$style ,
259- remaining = _objectWithoutProperties ( extraProps , _excluded$1 ) ;
259+ remaining = _objectWithoutProperties ( extraProps , _excluded ) ;
260260
261261 mixins . attrs [ 'style' ] = _objectSpread2 ( _objectSpread2 ( { } , mixins . attrs [ 'style' ] ) , existingStyle ) ;
262262 /* eslint-enable */
@@ -328,11 +328,7 @@ function objectWithKey(key, value) {
328328 return Array . isArray ( value ) && value . length > 0 || ! Array . isArray ( value ) && value ? _defineProperty ( { } , key , value ) : { } ;
329329}
330330
331- var _excluded = [ "forwardedRef" ] ;
332- function FontAwesomeIcon ( _ref ) {
333- var forwardedRef = _ref . forwardedRef ,
334- props = _objectWithoutProperties ( _ref , _excluded ) ;
335-
331+ var FontAwesomeIcon = /*#__PURE__*/ React . forwardRef ( function ( props , ref ) {
336332 var iconArgs = props . icon ,
337333 maskArgs = props . mask ,
338334 symbol = props . symbol ,
@@ -358,7 +354,7 @@ function FontAwesomeIcon(_ref) {
358354
359355 var abstract = renderedIcon . abstract ;
360356 var extraProps = {
361- ref : forwardedRef
357+ ref : ref
362358 } ;
363359 Object . keys ( props ) . forEach ( function ( key ) {
364360 // eslint-disable-next-line no-prototype-builtins
@@ -367,7 +363,7 @@ function FontAwesomeIcon(_ref) {
367363 }
368364 } ) ;
369365 return convertCurry ( abstract [ 0 ] , extraProps ) ;
370- }
366+ } ) ;
371367FontAwesomeIcon . displayName = 'FontAwesomeIcon' ;
372368FontAwesomeIcon . propTypes = {
373369 beat : PropTypes . bool ,
0 commit comments