From 834c357ad6cbcf91a9363c177cbf075dca679194 Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Mon, 26 Aug 2024 10:14:17 -0400 Subject: [PATCH] chore(helpers): Update helper import after merge --- .../v6/buttonMoveIconsIconProp/button-moveIcons-icon-prop.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/eslint-plugin-pf-codemods/src/rules/v6/buttonMoveIconsIconProp/button-moveIcons-icon-prop.ts b/packages/eslint-plugin-pf-codemods/src/rules/v6/buttonMoveIconsIconProp/button-moveIcons-icon-prop.ts index 38e26916..28e49314 100644 --- a/packages/eslint-plugin-pf-codemods/src/rules/v6/buttonMoveIconsIconProp/button-moveIcons-icon-prop.ts +++ b/packages/eslint-plugin-pf-codemods/src/rules/v6/buttonMoveIconsIconProp/button-moveIcons-icon-prop.ts @@ -6,7 +6,7 @@ import { getAttributeValue, getExpression, getChildrenAsAttributeValueText, - getChildElementByName, + getChildJSXElementByName, isReactIcon, } from "../../helpers"; @@ -75,7 +75,7 @@ module.exports = { } const iconComponentChild = - hasIconImport && getChildElementByName(node, "Icon"); + hasIconImport && getChildJSXElementByName(node, "Icon"); const jsxElementChildren = node.children.filter( (child) => child.type === "JSXElement"