This commit is contained in:
Kenneth Jannette
2024-01-25 14:35:54 -06:00
parent 275538583f
commit 036a41b73b
2 changed files with 4 additions and 4 deletions

View File

@@ -68,8 +68,9 @@ const SignupPage = () => {
}
};
const handleChangeRadioInput = (name) => {
//console.log("name", name.label);
const handleChangeRadioInput = (value) => {
const temp = value;
setActiveRadioOption(temp);
};
signupRadioFields.map((option) => {
console.log(option.value);
@@ -375,7 +376,6 @@ const SignupPage = () => {
<div className="radio-group-box">
{signupRadioFields?.map((option, i) => (
<Radio
option={option.name}
onClick={handleChangeRadioInput}
value={option.value}
name={option.name}

View File

@@ -11,7 +11,7 @@ const Radio = (props) => {
<div
className="radio-option-container"
key={name}
onClick={() => !disabled && onClick && onClick(name)}
onClick={() => !disabled && onClick && onClick(value)}
>
{value == activeRadioOption ? (
<div className="radio-circle-container">