set all category gender and dgree
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user