fix build error
This commit is contained in:
parent
3e077fa247
commit
40bb3e6fae
|
@ -13,4 +13,6 @@ const Icon = forwardRef<SVGSVGElement, Props>(({ icon, ...rest }, ref) => {
|
||||||
} else return <IconComponent ref={ref} {...rest} />;
|
} else return <IconComponent ref={ref} {...rest} />;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Icon.displayName = "Icon";
|
||||||
|
|
||||||
export default Icon;
|
export default Icon;
|
||||||
|
|
|
@ -24,7 +24,9 @@ const IconGrid = ({ query, color, weight, iconName, setIconName }: Props) => {
|
||||||
return fuse.search(query).map((result) => result.item);
|
return fuse.search(query).map((result) => result.item);
|
||||||
}, [query]);
|
}, [query]);
|
||||||
|
|
||||||
return filteredQueryResultsSelector.map((icon) => {
|
return (
|
||||||
|
<>
|
||||||
|
{filteredQueryResultsSelector.map((icon) => {
|
||||||
const IconComponent = icon.Icon;
|
const IconComponent = icon.Icon;
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
@ -39,7 +41,9 @@ const IconGrid = ({ query, color, weight, iconName, setIconName }: Props) => {
|
||||||
<IconComponent size={32} weight={weight} color={color} />
|
<IconComponent size={32} weight={weight} color={color} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
})}
|
||||||
|
</>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default IconGrid;
|
export default IconGrid;
|
||||||
|
|
Ŝarĝante…
Reference in New Issue