From dbecc95b1b7801829d9b84c54d1195c4395fa37b Mon Sep 17 00:00:00 2001 From: mukilan2815 Date: Tue, 25 Jun 2024 13:03:17 +0530 Subject: [PATCH] done --- src/Pages/Client/NewMember/Membershipform.jsx | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/Pages/Client/NewMember/Membershipform.jsx b/src/Pages/Client/NewMember/Membershipform.jsx index c00b3e3..00d2550 100644 --- a/src/Pages/Client/NewMember/Membershipform.jsx +++ b/src/Pages/Client/NewMember/Membershipform.jsx @@ -63,9 +63,14 @@ const Membershipform = () => { "Associations", ]; - const handleInputChange = (e) => { - const { name, value } = e.target; - setFormData({ ...formData, [name]: value }); + const handleInputChange = (event) => { + const { name, type, checked, value } = event.target; + const inputValue = type === "checkbox" ? checked : value; + + setFormData({ + ...formData, + [name]: inputValue, + }); }; const handleProfessionChange = (index, value) => { @@ -550,9 +555,9 @@ const Membershipform = () => {
Domestic:
@@ -560,9 +565,9 @@ const Membershipform = () => {
Global:
@@ -570,13 +575,14 @@ const Membershipform = () => {
Both:
+
% of Exports: