From 03fa343f03786a734d2f9028e5cf592000aca80e Mon Sep 17 00:00:00 2001 From: Alihaghighattalab Date: Mon, 5 Aug 2024 17:59:51 +0330 Subject: [PATCH] change props name in input --- src/components/common/input.tsx | 6 +++--- src/components/forms/login-form.tsx | 4 ++-- src/components/forms/reset-password.form.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/common/input.tsx b/src/components/common/input.tsx index cc2bc7a..f947059 100644 --- a/src/components/common/input.tsx +++ b/src/components/common/input.tsx @@ -7,10 +7,10 @@ type Props = { type?: React.HTMLInputTypeAttribute, placeholder: string, icon?: React.ReactNode, - other?: any + field?: any } -export const Input: FC = ({ placeholder, type = "text", icon, other }) => { +export const Input: FC = ({ placeholder, type = "text", icon, field }) => { const [hidden, setHidden] = useState(false) const handleHidden = () => setHidden(prev => !prev) return ( @@ -20,7 +20,7 @@ export const Input: FC = ({ placeholder, type = "text", icon, other }) => !hidden ? : : icon} -