Fixed className not appearing

This commit is contained in:
Lucas Oliveira 2023-11-29 14:02:41 -03:00
commit ab57b14c52

View file

@ -11,13 +11,13 @@ const ForwardedIconComponent = forwardRef(
const style = { const style = {
strokeWidth: 1.5, strokeWidth: 1.5,
className: className,
...(stroke && { stroke: stroke }), ...(stroke && { stroke: stroke }),
...(iconColor && { color: iconColor, stroke: stroke }), ...(iconColor && { color: iconColor, stroke: stroke }),
}; };
return ( return (
<TargetIcon <TargetIcon
className={className}
style={style} style={style}
ref={ref} ref={ref}
data-testid={id ? `${id}-${name}` : `icon-${name}`} data-testid={id ? `${id}-${name}` : `icon-${name}`}