set all category gender and dgree

This commit is contained in:
2025-05-19 10:10:41 +03:30
parent c8c217e286
commit 5235579df2
+13 -2
View File
@@ -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);