change default value and handle updateData
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user