diff --git a/package/components/dataDisplay/CoreIcon.js b/package/components/dataDisplay/CoreIcon.js index 75220f88..c609ebc1 100644 --- a/package/components/dataDisplay/CoreIcon.js +++ b/package/components/dataDisplay/CoreIcon.js @@ -25,16 +25,13 @@ export const __IconTypes = { */ export default function CoreIcon(props) { props = sanitizeComponentProps(CoreIcon, props); - const { type, icon, options, sx, ...restProps } = props; + const { + baseClassName, type, icon, options, sx, ...restProps + } = props; let tmpType = type || options?.type || __IconTypes.MATERIAL_ICON; let tmpIcon = props.children || icon || options?.icon || ""; - const { - baseClassName, - children - } = props; - return ( - {children} - + /> ); // return (