in page add doctor change data state & component & save data & request to send data & change component folder

This commit is contained in:
Ehsan
2025-07-14 04:30:50 +03:30
parent 97802a9fdf
commit 88f25cdd2e
16 changed files with 393 additions and 156 deletions
@@ -3,13 +3,8 @@ import Content from "./Content";
import DateBirthday from "./DateBirthday";
import AutoSelector from "../component/AutoSelector";
import Field from "../component/Field";
import {
gender,
blood_group,
marital_status,
education,
job,
} from "./listSelector";
import { gender, blood_group, marital_status, job } from "./listSelector";
import education from "@/data/education.json";
function Form({ insurance, errors, changeData, information }) {
const findVal = (list, name) =>
@@ -19,14 +19,6 @@ export const marital_status = [
{ label: "مجرد", id: "single" },
];
export const education = [
{ label: "دیپلم", id: "diploma" },
{ label: "دیپلم تحصیلات تکمیلی", id: "postgraduate_diploma" },
{ label: "لیسانس", id: "bachelor_s_degree" },
{ label: "کارشناسی ارشد", id: "master_s_degree" },
{ label: "دکترا", id: "doctorate" },
];
export const job = [
{ label: "آزاد", id: "azad" },
{ label: "دولتی", id: "dolati" },