fix: add support for functional component type icons

This commit is contained in:
Bettenbuk Zoltan 2019-09-20 15:47:53 +02:00 committed by Zoltan Bettenbuk
parent 64d2885233
commit f5dba929a5
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}
}