From 136c1e9af2f8c5c1b4c9bb9e786a7b99db492fd4 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Thu, 25 Jan 2024 12:04:41 -0600 Subject: [PATCH] more --- src/Components/SignupPage/SignupPage.js | 2 +- src/Utils/Form.js | 5 +++++ src/styles/signup.scss | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index c3a5a98..f0cf2d1 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -397,7 +397,7 @@ const SignupPage = () => { disabled={isBusy} dynamicClassName={"signup-option-div"} optionContainerDynamicClass={"signup-option"} - onClick={(e) => handleChangeRadioInput(e, "clientPosition")} + onClick={handleChangeRadioInput} /> diff --git a/src/Utils/Form.js b/src/Utils/Form.js index 3e44f77..8570c49 100644 --- a/src/Utils/Form.js +++ b/src/Utils/Form.js @@ -84,6 +84,11 @@ export const getValidatedFormData = (data, fields) => }, data); export const handleFormDataChange = (e, name, data, fields) => { + console.log("fields", fields); + if (!fields) { + return; + } + const value = (typeof e?.target?.value === "undefined" ? e.value : e.target.value) || ""; const field = fields[name]; diff --git a/src/styles/signup.scss b/src/styles/signup.scss index 0085e41..ecb257a 100644 --- a/src/styles/signup.scss +++ b/src/styles/signup.scss @@ -121,5 +121,5 @@ } .signup-option { - width: 200px !important; + width: 100% !important; }