🔧 chore: add cloneIcon to dep list
This commit is contained in:
parent
22233d95f8
commit
5a5756bcf2
@ -41,14 +41,14 @@ export const Tag = ({
|
|||||||
const renderLeftIcon = useMemo(() => {
|
const renderLeftIcon = useMemo(() => {
|
||||||
if (!leftIcon) return null;
|
if (!leftIcon) return null;
|
||||||
return <div className={iconCls()}>{cloneIcon(leftIcon, { size: 16 })}</div>;
|
return <div className={iconCls()}>{cloneIcon(leftIcon, { size: 16 })}</div>;
|
||||||
}, [iconCls, leftIcon]);
|
}, [cloneIcon, iconCls, leftIcon]);
|
||||||
|
|
||||||
const renderRightIcon = useMemo(() => {
|
const renderRightIcon = useMemo(() => {
|
||||||
if (!rightIcon) return null;
|
if (!rightIcon) return null;
|
||||||
return (
|
return (
|
||||||
<div className={iconCls()}>{cloneIcon(rightIcon, { size: 16 })}</div>
|
<div className={iconCls()}>{cloneIcon(rightIcon, { size: 16 })}</div>
|
||||||
);
|
);
|
||||||
}, [iconCls, rightIcon]);
|
}, [cloneIcon, iconCls, rightIcon]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={wrapperCls()}>
|
<div className={wrapperCls()}>
|
||||||
|
Loading…
Reference in New Issue
Block a user