refactor[genericIconComponent]: Remove unnecessary svg method function

This commit is contained in:
Igor Carvalho 2023-07-17 19:47:15 -03:00
commit 56eb70674a
2 changed files with 1 additions and 16 deletions

View file

@ -1,15 +1,6 @@
import { IconComponentProps, IconProps } from "../../types/components";
import { IconComponentProps } from "../../types/components";
import { nodeIconsLucide } from "../../utils";
export function IconFromLucide({
name,
style,
iconColor,
}: IconProps): JSX.Element {
const TargetIcon = nodeIconsLucide[name] ?? nodeIconsLucide["unknown"];
return <TargetIcon className={style} style={{ color: iconColor }} />;
}
export default function IconComponent({
name,
style,

View file

@ -162,12 +162,6 @@ export interface IVarHighlightType {
name: string;
}
export type IconProps = {
name: string;
style: string;
iconColor?: string;
};
export type IconComponentProps = {
name: string;
style: string;