fix: add support for functional component type icons
This commit is contained in:
parent
64d2885233
commit
f5dba929a5
|
@ -42,6 +42,6 @@ export default class AbstractStatelessAvatar<P: Props> extends PureComponent<P>
|
|||
* @returns {boolean}
|
||||
*/
|
||||
_isIcon(iconProp: ?string | ?Object): boolean {
|
||||
return Boolean(iconProp) && typeof iconProp === 'object';
|
||||
return Boolean(iconProp) && (typeof iconProp === 'object' || typeof iconProp === 'function');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue