mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-08 00:42:35 +02:00
fix: remove SOLID div (#395)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
parent
2f8360ec24
commit
b9d30ab235
|
@ -45,7 +45,7 @@ export function Icon({ iconWidth, icon }: IconProps) {
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (iconContainerRef.current) {
|
if (iconContainerRef.current) {
|
||||||
htmlContentsRef.current = bakeSvg(
|
htmlContentsRef.current = bakeSvg(
|
||||||
iconContainerRef.current.innerHTML,
|
(iconContainerRef.current.firstChild as SVGElement).outerHTML,
|
||||||
iconContext.color || DEFAULT_CUSTOMIZATIONS.hexColor,
|
iconContext.color || DEFAULT_CUSTOMIZATIONS.hexColor,
|
||||||
iconContext.strokeWidth || DEFAULT_CUSTOMIZATIONS.strokeWidth,
|
iconContext.strokeWidth || DEFAULT_CUSTOMIZATIONS.strokeWidth,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue