feat(clinic): enhance doctor data handling with improved pagination and default values

This commit is contained in:
hamed
2026-06-18 19:16:52 +03:30
parent fdb5866562
commit 4dca516598
4 changed files with 15 additions and 6 deletions
@@ -3,7 +3,7 @@ import { FormControlLabel, Radio, RadioGroup } from "@mui/material";
function Radios({ group, value, updateData, name }) {
return (
<RadioGroup
value={value}
value={value ?? ""}
className="radio-mui"
onChange={(e) => updateData(name, e.target.value)}
sx={{
@@ -32,7 +32,7 @@ function Form({ filter, changeSpecialty, updateData }) {
<div className="mt-[40px] mb-[32px]">
<RadioContent
updateData={updateData}
value={filter.gender}
value={filter.gender ?? "هر دو"}
text="جنسیت پزشک"
group={gender}
name="gender"
@@ -40,7 +40,7 @@ function Form({ filter, changeSpecialty, updateData }) {
<span className="block mt-[16px] mb-[24px] w-full h-px bg-[#EFEFEF]"></span>
<RadioContent
updateData={updateData}
value={filter.degree}
value={filter.degree ?? "همه موارد"}
text="درجه علمی"
group={degree}
name="degree"