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} />;
|
||||
});
|
||||
|
||||
Icon.displayName = "Icon";
|
||||
|
||||
export default Icon;
|
||||
|
|
|
@ -24,7 +24,9 @@ const IconGrid = ({ query, color, weight, iconName, setIconName }: Props) => {
|
|||
return fuse.search(query).map((result) => result.item);
|
||||
}, [query]);
|
||||
|
||||
return filteredQueryResultsSelector.map((icon) => {
|
||||
return (
|
||||
<>
|
||||
{filteredQueryResultsSelector.map((icon) => {
|
||||
const IconComponent = icon.Icon;
|
||||
return (
|
||||
<div
|
||||
|
@ -39,7 +41,9 @@ const IconGrid = ({ query, color, weight, iconName, setIconName }: Props) => {
|
|||
<IconComponent size={32} weight={weight} color={color} />
|
||||
</div>
|
||||
);
|
||||
});
|
||||
})}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default IconGrid;
|
||||
|
|
Ŝarĝante…
Reference in New Issue