From 1b6e61d3cb16e4cf8397e1ad3be18409fbd22b6d Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Tue, 2 May 2023 18:46:41 -0300 Subject: [PATCH] style(inputComponent): fix indentation and spacing in InputComponent component --- .../src/components/inputComponent/index.tsx | 143 ++++++++++-------- 1 file changed, 76 insertions(+), 67 deletions(-) diff --git a/src/frontend/src/components/inputComponent/index.tsx b/src/frontend/src/components/inputComponent/index.tsx index 164d00704..72e05a2c8 100644 --- a/src/frontend/src/components/inputComponent/index.tsx +++ b/src/frontend/src/components/inputComponent/index.tsx @@ -3,75 +3,84 @@ import { InputComponentType } from "../../types/components"; import { classNames } from "../../utils"; export default function InputComponent({ - value, - onChange, - disabled, - password, + value, + onChange, + disabled, + password, }: InputComponentType) { - const [myValue, setMyValue] = useState(value ?? ""); - const [pwdVisable, setPwdVisable] = useState(false) - useEffect(() => { - if (disabled) { - setMyValue(""); - onChange(""); - } - }, [disabled, onChange]); - return ( -
- { - setMyValue(e.target.value); - onChange(e.target.value); - }} - /> - -
- ); + + ); }