forked from cerc-io/snowballtools-base
🔧 chore: add dependency to usememo
This commit is contained in:
parent
448d0ceb7c
commit
da2f7ede42
@ -58,7 +58,7 @@ export const Input = ({
|
|||||||
{cloneIcon(leftIcon, { className: iconCls(), ariaHidden: true })}
|
{cloneIcon(leftIcon, { className: iconCls(), ariaHidden: true })}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}, [iconCls, leftIcon]);
|
}, [cloneIcon, iconCls, iconContainerCls, leftIcon]);
|
||||||
|
|
||||||
const renderRightIcon = useMemo(() => {
|
const renderRightIcon = useMemo(() => {
|
||||||
return (
|
return (
|
||||||
@ -66,7 +66,7 @@ export const Input = ({
|
|||||||
{cloneIcon(rightIcon, { className: iconCls(), ariaHidden: true })}
|
{cloneIcon(rightIcon, { className: iconCls(), ariaHidden: true })}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}, [rightIcon, iconCls]);
|
}, [cloneIcon, iconCls, iconContainerCls, rightIcon]);
|
||||||
|
|
||||||
const renderHelperText = useMemo(
|
const renderHelperText = useMemo(
|
||||||
() => (
|
() => (
|
||||||
@ -78,7 +78,7 @@ export const Input = ({
|
|||||||
<p>{helperText}</p>
|
<p>{helperText}</p>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
[state, helperText, helperTextCls],
|
[cloneIcon, state, helperIconCls, helperText, helperTextCls],
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user