🔧 chore: add cloneIcon to dep list

This commit is contained in:
Andre H 2024-02-23 10:47:50 +07:00
parent 22233d95f8
commit 5a5756bcf2

View File

@ -41,14 +41,14 @@ export const Tag = ({
const renderLeftIcon = useMemo(() => {
if (!leftIcon) return null;
return <div className={iconCls()}>{cloneIcon(leftIcon, { size: 16 })}</div>;
}, [iconCls, leftIcon]);
}, [cloneIcon, iconCls, leftIcon]);
const renderRightIcon = useMemo(() => {
if (!rightIcon) return null;
return (
<div className={iconCls()}>{cloneIcon(rightIcon, { size: 16 })}</div>
);
}, [iconCls, rightIcon]);
}, [cloneIcon, iconCls, rightIcon]);
return (
<div className={wrapperCls()}>