diff --git a/react/Icon/index.jsx b/react/Icon/index.jsx index 836703cce..96693157e 100644 --- a/react/Icon/index.jsx +++ b/react/Icon/index.jsx @@ -51,8 +51,23 @@ function Icon(props) { if (!icon) return null const isIconComp = icon.type === Icon - - if (isIconComp) return icon + const isImg = icon.type === 'img' + + if (isIconComp || isImg) return icon + + const isPngPath = typeof icon === 'string' && icon.includes('.png') + + if (isPngPath) + return ( + + ) const Svg = isFunction(icon) ? icon : makeSvgObject(icon)