From 9bba5f0d2d5108f66f0caecc9f8066462da2e173 Mon Sep 17 00:00:00 2001 From: dnlbui Date: Wed, 11 Sep 2024 17:35:20 -0500 Subject: [PATCH] revert changes --- components/molecules/LoginForm.tsx | 50 ++++++++++++++++-------------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/components/molecules/LoginForm.tsx b/components/molecules/LoginForm.tsx index 17e7628..781e4f2 100644 --- a/components/molecules/LoginForm.tsx +++ b/components/molecules/LoginForm.tsx @@ -8,7 +8,7 @@ import { useGlobals } from "../../utils/globals"; import { useDevice } from "../../context/device"; export const LoginForm: React.FC = () => { - const { register, handleSubmit, watch, formState: { isSubmitting } } = useForm(); + const { register, handleSubmit, watch, formState } = useForm(); const [isInputActive, setIsInputActive] = useState(false); const passwordInput = watch("password"); @@ -68,28 +68,32 @@ export const LoginForm: React.FC = () => {
- + {!formState.isSubmitting && ( + + )} + {formState.isSubmitting && ( + + )}