From da2f7ede426025e9657cad31b62c3df524c937db Mon Sep 17 00:00:00 2001 From: Andre H Date: Thu, 22 Feb 2024 09:15:17 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20add=20dependency=20to?= =?UTF-8?q?=20usememo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/shared/Input/Input.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/shared/Input/Input.tsx b/packages/frontend/src/components/shared/Input/Input.tsx index 0905f556..f5bbdca5 100644 --- a/packages/frontend/src/components/shared/Input/Input.tsx +++ b/packages/frontend/src/components/shared/Input/Input.tsx @@ -58,7 +58,7 @@ export const Input = ({ {cloneIcon(leftIcon, { className: iconCls(), ariaHidden: true })} ); - }, [iconCls, leftIcon]); + }, [cloneIcon, iconCls, iconContainerCls, leftIcon]); const renderRightIcon = useMemo(() => { return ( @@ -66,7 +66,7 @@ export const Input = ({ {cloneIcon(rightIcon, { className: iconCls(), ariaHidden: true })} ); - }, [rightIcon, iconCls]); + }, [cloneIcon, iconCls, iconContainerCls, rightIcon]); const renderHelperText = useMemo( () => ( @@ -78,7 +78,7 @@ export const Input = ({

{helperText}

), - [state, helperText, helperTextCls], + [cloneIcon, state, helperIconCls, helperText, helperTextCls], ); return (