diff --git a/src/frontend/src/components/inputComponent/index.tsx b/src/frontend/src/components/inputComponent/index.tsx index 6f76f6773..164d00704 100644 --- a/src/frontend/src/components/inputComponent/index.tsx +++ b/src/frontend/src/components/inputComponent/index.tsx @@ -9,6 +9,7 @@ export default function InputComponent({ password, }: InputComponentType) { const [myValue, setMyValue] = useState(value ?? ""); + const [pwdVisable, setPwdVisable] = useState(false) useEffect(() => { if (disabled) { setMyValue(""); @@ -16,24 +17,61 @@ export default function InputComponent({ } }, [disabled, onChange]); return ( -
+
0?"password":"" )} placeholder="Type a text" - onCopy={(e)=>{ - if(password) e.preventDefault(); - }} onChange={(e) => { setMyValue(e.target.value); onChange(e.target.value); }} /> +
); }