feat(clinic): enhance doctor data handling with improved pagination and default values
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user