mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-11-17 20:39:19 +00:00
🔧 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(() => {
|
||||
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()}>
|
||||
|
Loading…
Reference in New Issue
Block a user