open timepicker just with click on input(no click on icon)

This commit is contained in:
Ehsan
2024-10-20 23:09:05 +03:30
parent 804c9f96dd
commit 773b64ca25
4 changed files with 39 additions and 12 deletions
+9 -7
View File
@@ -9,7 +9,7 @@ import GeneralInformation from "./listMenu/generalInformation";
import Step from "./Step";
function AddDoctorPage() {
const [value, setValue] = useState(0);
const [value, setValue] = useState(2);
const [data, setData] = useState({
general: {
name: { value: "", placeholder: "احسان احمدی", isEdit: true },
@@ -35,7 +35,7 @@ function AddDoctorPage() {
work_day: [
{
name: "شنبه",
number_turns: "",
number_turns: 1,
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -43,7 +43,7 @@ function AddDoctorPage() {
},
{
name: "یکشنبه",
number_turns: "",
number_turns: 1,
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -51,7 +51,7 @@ function AddDoctorPage() {
},
{
name: "دوشنبه",
number_turns: "",
number_turns: 1,
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -59,7 +59,7 @@ function AddDoctorPage() {
},
{
name: "سه شنبه",
number_turns: "",
number_turns: 1,
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -67,7 +67,7 @@ function AddDoctorPage() {
},
{
name: "چهار شنبه",
number_turns: "",
number_turns: 1,
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -75,7 +75,7 @@ function AddDoctorPage() {
},
{
name: "پنج شنبه",
number_turns: "",
number_turns: 1,
turn_time: "",
workplace: "",
morning_time: ["", ""],
@@ -83,6 +83,8 @@ function AddDoctorPage() {
},
],
});
console.log(data);
const components = [
<GeneralInformation
@@ -2,7 +2,7 @@ import { Button } from "@mui/material";
import ContentText from "@/app/component/ContentText";
import TimePickerField from "@/app/component/TimePickerField";
import AutoCompleteSelect from "@/app/component/element/AutoCompleteSelect";
import { numberTurns, turnTime, workplace } from "./listSelector";
import { turnTime, workplace } from "./listSelector";
import EditField from "@/app/component/EditField";
function Form({
@@ -36,7 +36,7 @@ function Form({
name="number_turns"
props={{
inputProps: {
min: 0,
min: 1,
max: 10,
},
}}