save data modal & change list selectors & handle redirect in modal page doctors

This commit is contained in:
Ehsan
2025-05-16 13:52:47 +03:30
parent 328e11c21c
commit a016d3319a
7 changed files with 79 additions and 28 deletions
+3 -3
View File
@@ -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}
/>
))}