From 637163038099fcb5e4fcb4e9148094f0ac27bafb Mon Sep 17 00:00:00 2001 From: Mohammad Jalali Date: Mon, 6 Jan 2025 13:08:47 +0330 Subject: [PATCH] work on patrol form instead sending request --- .../Create/Forms/CreateFormContent.jsx | 95 ++++---- .../Actions/Create/Forms/GetItemInfo.jsx | 66 +++--- .../Actions/Create/Forms/ImageUpload.jsx | 44 ++-- .../RowActions/EditForm/EditFormContent.jsx | 31 ++- .../RowActions/EditForm/EditFormCreate.jsx | 36 +-- .../roadPatrols/operator/ExcelPrint/index.jsx | 26 +-- .../Forms/CreatePatrol/ActionInfo.jsx | 92 +------- .../Forms/CreatePatrol/ActionsDurigPatrol.jsx | 13 +- .../Forms/CreatePatrol/CompeleteRequest.jsx | 218 ++++++++++++++++++ .../CreatePatrol/EditActionDuringPatrol.jsx | 19 +- .../CreatePatrol/ModalActionsDuringPatrol.jsx | 2 +- .../Forms/CreatePatrol/PatrolDetail.jsx | 3 +- .../Forms/CreatePatrol/PatrolDetailInfo.jsx | 45 +++- .../Forms/CreatePatrol/PatrolForms.jsx | 99 ++++---- .../Forms/CreatePatrol/PatrolTimeLine.jsx | 37 +-- .../Forms/CreatePatrol/PhoneValidation.jsx | 39 +--- .../Forms/CreatePatrol/SuperVisorsDetail.jsx | 8 +- src/core/utils/routes.js | 1 + 18 files changed, 539 insertions(+), 335 deletions(-) create mode 100644 src/components/dashboard/roadPatrols/operator/Forms/CreatePatrol/CompeleteRequest.jsx diff --git a/src/components/dashboard/roadItems/operator/Actions/Create/Forms/CreateFormContent.jsx b/src/components/dashboard/roadItems/operator/Actions/Create/Forms/CreateFormContent.jsx index 7f47a7d..cfb5a36 100644 --- a/src/components/dashboard/roadItems/operator/Actions/Create/Forms/CreateFormContent.jsx +++ b/src/components/dashboard/roadItems/operator/Actions/Create/Forms/CreateFormContent.jsx @@ -1,10 +1,9 @@ -import React, { useState } from "react"; -import { useForm } from "react-hook-form"; -import { yupResolver } from "@hookform/resolvers/yup"; -import { array, mixed, number, object, string } from "yup"; -import { useTheme } from "@emotion/react"; -import useRequest from "@/lib/hooks/useRequest"; -import { Box, Button, DialogActions, DialogContent, Tab, Tabs, useMediaQuery } from "@mui/material"; +import React, {useState} from "react"; +import {useForm} from "react-hook-form"; +import {yupResolver} from "@hookform/resolvers/yup"; +import {array, mixed, number, object, string} from "yup"; +import {useTheme} from "@emotion/react"; +import {Box, Button, DialogActions, DialogContent, Tab, Tabs, useMediaQuery} from "@mui/material"; import StyledForm from "@/core/components/StyledForm"; import InsertDriveFileIcon from "@mui/icons-material/InsertDriveFile"; import FileCopyIcon from "@mui/icons-material/FileCopy"; @@ -15,10 +14,9 @@ import BeenhereIcon from "@mui/icons-material/Beenhere"; import GetItemsForm from "@/components/dashboard/roadItems/operator/Actions/Create/Forms/GetItemsForm"; import GetSubItemsForm from "@/components/dashboard/roadItems/operator/Actions/Create/Forms/GetSubItemsForm"; import GetItemInfo from "@/components/dashboard/roadItems/operator/Actions/Create/Forms/GetItemInfo"; -import { CREATE_ROAD_ITEMS } from "@/core/utils/routes"; function TabPanel(props) { - const { children, value, index } = props; + const {children, value, index} = props; return (