change default value and handle updateData

This commit is contained in:
Ehsan
2024-10-20 23:58:17 +03:30
parent 773b64ca25
commit 24fbae8797
6 changed files with 21 additions and 12 deletions
+6 -7
View File
@@ -35,7 +35,7 @@ function AddDoctorPage() {
work_day: [
{
name: "شنبه",
number_turns: 1,
number_turns: { value: 1, isEdit: true },
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -43,7 +43,7 @@ function AddDoctorPage() {
},
{
name: "یکشنبه",
number_turns: 1,
number_turns: { value: 1, isEdit: true },
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -51,7 +51,7 @@ function AddDoctorPage() {
},
{
name: "دوشنبه",
number_turns: 1,
number_turns: { value: 1, isEdit: true },
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -59,7 +59,7 @@ function AddDoctorPage() {
},
{
name: "سه شنبه",
number_turns: 1,
number_turns: { value: 1, isEdit: true },
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -67,7 +67,7 @@ function AddDoctorPage() {
},
{
name: "چهار شنبه",
number_turns: 1,
number_turns: { value: 1, isEdit: true },
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -75,7 +75,7 @@ function AddDoctorPage() {
},
{
name: "پنج شنبه",
number_turns: 1,
number_turns: { value: 1, isEdit: true },
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -84,7 +84,6 @@ function AddDoctorPage() {
],
});
console.log(data);
const components = [
<GeneralInformation