fix build error

This commit is contained in:
daniel31x13 2024-09-04 22:29:54 -04:00
parent 3e077fa247
commit 40bb3e6fae
2 changed files with 22 additions and 16 deletions

View File

@ -13,4 +13,6 @@ const Icon = forwardRef<SVGSVGElement, Props>(({ icon, ...rest }, ref) => {
} else return <IconComponent ref={ref} {...rest} />;
});
Icon.displayName = "Icon";
export default Icon;

View File

@ -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;