Add comments and optimized code

This commit is contained in:
2023-10-30 09:34:14 +07:00
parent 367b24f4fa
commit 04469af993
6 changed files with 22 additions and 12 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ const UserForm = ({
onClose();
};
// Close form
// Close and reset form
const closeAndReset = () => {
onClose();
onResetForm();