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 { FormControlLabel, Switch } from "@mui/material";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { filterList } from "@/helper";
|
import { filterList } from "@/helper";
|
||||||
const group1 = ["خانم", "آقا", "هر دو"];
|
const gender = [
|
||||||
const group2 = ["فوق تخصص", "دکترای تخصصی", "متخصص", "دکتری"];
|
{ 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 }) {
|
function Content({ data, setData }) {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { parentList, childrenList } = filterList(data);
|
const { parentList, childrenList } = filterList(data);
|
||||||
|
console.log('parentList', parentList);
|
||||||
|
|
||||||
|
|
||||||
const changeUrl = (value, name, removeSpecialties) => {
|
const changeUrl = (value, name, removeSpecialties) => {
|
||||||
const current = new URLSearchParams(window.location.search);
|
const current = new URLSearchParams(window.location.search);
|
||||||
|
|||||||
Reference in New Issue
Block a user