From 71e45860f3cca61de1d4caba6bfa9babb6232089 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Fri, 7 Mar 2025 17:10:48 +0530 Subject: [PATCH] (fix:input) remove ambiguous label prop --- frontend/src/components/Input.tsx | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/Input.tsx b/frontend/src/components/Input.tsx index 247446ef..4cdf0d0d 100644 --- a/frontend/src/components/Input.tsx +++ b/frontend/src/components/Input.tsx @@ -8,13 +8,13 @@ const Input = ({ value, isAutoFocused = false, placeholder, - label, required = false, maxLength, - className, + className = '', colorVariant = 'silver', borderVariant = 'thick', children, + labelBgClassName = 'bg-white dark:bg-raisin-black', onChange, onPaste, onKeyDown, @@ -32,15 +32,15 @@ const Input = ({ const inputRef = useRef(null); return ( -
+
{children} - {(label || placeholder) && ( + {placeholder && (