save data modal & change list selectors & handle redirect in modal page doctors
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { FormControlLabel, Radio, RadioGroup } from "@mui/material";
|
||||
|
||||
function Radios({ group, value, changeData }) {
|
||||
function Radios({ group, value, changeData, name }) {
|
||||
return (
|
||||
<RadioGroup
|
||||
value={value}
|
||||
className="radio-mui"
|
||||
onChange={(e) => changeData(e.target.value)}
|
||||
onChange={(e) => changeData(e.target.value, name)}
|
||||
sx={{
|
||||
"& .MuiFormControlLabel-root": {
|
||||
marginRight: "0 !important",
|
||||
@@ -18,7 +18,7 @@ function Radios({ group, value, changeData }) {
|
||||
control={<Radio className="!ml-2" />}
|
||||
className="!text-[#525252]"
|
||||
label={item}
|
||||
value={idx}
|
||||
value={item}
|
||||
key={idx}
|
||||
/>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user