diff --git a/components/panel/addDoctor/Step.js b/components/panel/addDoctor/Step.js index 1308176..74901b0 100644 --- a/components/panel/addDoctor/Step.js +++ b/components/panel/addDoctor/Step.js @@ -17,18 +17,18 @@ function Step({ value }) {
= idx - ? "before:right-0 !bg-transparent" + ? "before:right-0 !bg-transparent delay-700" : "before:-right-full" }`} >
{item.icon}

= idx ? "font-bold text-[#5559CE]" diff --git a/components/panel/addDoctor/index.js b/components/panel/addDoctor/index.js index 5235d97..cdfd35e 100644 --- a/components/panel/addDoctor/index.js +++ b/components/panel/addDoctor/index.js @@ -9,12 +9,16 @@ import GeneralInformation from "./listMenu/generalInformation"; import Step from "./Step"; function AddDoctorPage() { - const [value, setValue] = useState(0); + const [value, setValue] = useState(1); const [data, setData] = useState({ general: { - name: { value: "احسان احمدی", isEdit: true }, - medical_system_number: { value: 1741025645, isEdit: true }, - expertise: { value: "دندان پزشکی", isEdit: true }, + name: { value: "", placeholder: "احسان احمدی", isEdit: true }, + medical_system_number: { + value: "", + placeholder: 1741025645, + isEdit: true, + }, + expertise: { value: "", placeholder: "دندان پزشکی", isEdit: true }, description: { value: "", isEdit: true }, skills: { value: "", isEdit: true }, time_work: { value: "", isEdit: true }, @@ -22,7 +26,7 @@ function AddDoctorPage() { }, office: { address: { value: "", isEdit: true }, - phone: { value: 1741025645, isEdit: true }, + phone: { value: "", placeholder: 1741025645, isEdit: true }, office_number1: { value: "", isEdit: true }, office_number2: { value: "", isEdit: true }, state: { value: "", isEdit: true }, diff --git a/components/panel/addDoctor/listMenu/generalInformation/form/index.js b/components/panel/addDoctor/listMenu/generalInformation/form/index.js index e76b704..985d726 100644 --- a/components/panel/addDoctor/listMenu/generalInformation/form/index.js +++ b/components/panel/addDoctor/listMenu/generalInformation/form/index.js @@ -1,6 +1,6 @@ import { Button } from "@mui/material"; import FieldDate from "./FieldDate"; -import { degree } from "./listSelector"; +import { degree, expertise } from "./listSelector"; import RadioGender from "./RadioGender"; // Components @@ -35,6 +35,7 @@ function Form({ setValue, parent, data, setData }) { iconGray={true} changeData={changeData} data={data?.name} + placeholder={data?.name.placeholder} name="name" /> @@ -44,16 +45,16 @@ function Form({ setValue, parent, data, setData }) { iconGray={true} changeData={changeData} data={data?.medical_system_number} + placeholder={data?.medical_system_number.placeholder} name="medical_system_number" /> - diff --git a/components/panel/addDoctor/listMenu/generalInformation/form/listSelector.js b/components/panel/addDoctor/listMenu/generalInformation/form/listSelector.js index d39d259..6cd4d1e 100644 --- a/components/panel/addDoctor/listMenu/generalInformation/form/listSelector.js +++ b/components/panel/addDoctor/listMenu/generalInformation/form/listSelector.js @@ -4,3 +4,10 @@ export const degree = [ { label: "مدرک 3", id: 30 }, { label: "مدرک 4", id: 40 }, ]; + +export const expertise = [ + { label: "فوق تخصص", id: 10 }, + { label: "دکترای تخصصی", id: 20 }, + { label: "متخصص", id: 30 }, + { label: "دکتری", id: 40 }, +]; diff --git a/components/panel/addDoctor/listMenu/officeInformation/index.js b/components/panel/addDoctor/listMenu/officeInformation/index.js index 090d2c3..470f06c 100644 --- a/components/panel/addDoctor/listMenu/officeInformation/index.js +++ b/components/panel/addDoctor/listMenu/officeInformation/index.js @@ -10,13 +10,17 @@ function OfficeInformation({ setValue, parent, data, setData }) {