diff --git a/components/shared/toggle-visibility-input.tsx b/components/shared/toggle-visibility-input.tsx index 697008e5f..d3a2b5e3e 100644 --- a/components/shared/toggle-visibility-input.tsx +++ b/components/shared/toggle-visibility-input.tsx @@ -3,14 +3,7 @@ import { EyeIcon, EyeOffIcon } from "lucide-react"; import { Input, type InputProps } from "../ui/input"; import { Button } from "../ui/button"; -interface ToggleVisibilityInputProps extends InputProps { - value: string | undefined; -} - -export const ToggleVisibilityInput = ({ - value, - ...props -}: ToggleVisibilityInputProps) => { +export const ToggleVisibilityInput = ({ ...props }: InputProps) => { const [isPasswordVisible, setIsPasswordVisible] = useState(false); const togglePasswordVisibility = () => { @@ -20,7 +13,7 @@ export const ToggleVisibilityInput = ({ const inputType = isPasswordVisible ? "text" : "password"; return (