From 5235579df260606baa3f0b983608c5337975caa4 Mon Sep 17 00:00:00 2001 From: hamed Hosseini Date: Mon, 19 May 2025 10:10:41 +0330 Subject: [PATCH] set all category gender and dgree --- components/doctors/modal/Content.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/components/doctors/modal/Content.js b/components/doctors/modal/Content.js index ecbdfcf..5b6946f 100644 --- a/components/doctors/modal/Content.js +++ b/components/doctors/modal/Content.js @@ -3,12 +3,23 @@ import RadioContent from "./RadioContent"; import { FormControlLabel, Switch } from "@mui/material"; import { useRouter } from "next/navigation"; import { filterList } from "@/helper"; -const group1 = ["خانم", "آقا", "هر دو"]; -const group2 = ["فوق تخصص", "دکترای تخصصی", "متخصص", "دکتری"]; +const gender = [ + { id: "woman", label: "زن" }, + { id: "man", label: "مرد" }, + { id: "هر دو", label: "all" }, +] +const dgree = [ + { id: "general", label: "پزشک عمومی" }, + { id: "specialist", label: "پزشک متخصص" }, + { id: "subspecialistplus", label: "پزشک فوق تخصص" }, + { id: "all", label: "همه موارد" }, +]; function Content({ data, setData }) { const router = useRouter(); const { parentList, childrenList } = filterList(data); + console.log('parentList', parentList); + const changeUrl = (value, name, removeSpecialties) => { const current = new URLSearchParams(window.location.search);