From 82d8f1c7e9ad1e347146e168770caa4b867e5a67 Mon Sep 17 00:00:00 2001 From: Mohammad Jalali Date: Mon, 6 Jan 2025 13:09:46 +0330 Subject: [PATCH] formatting --- .../Create/Forms/CreateFormContent.jsx | 74 +++--- .../Actions/Create/Forms/GetItemInfo.jsx | 18 +- .../Actions/Create/Forms/ImageUpload.jsx | 16 +- .../RowActions/EditForm/EditFormContent.jsx | 14 +- .../RowActions/EditForm/EditFormCreate.jsx | 35 +-- .../operator/Actions/Create/index.jsx | 16 +- .../roadPatrols/operator/ExcelPrint/index.jsx | 25 +- .../Forms/CreatePatrol/ActionInfo.jsx | 46 ++-- .../Forms/CreatePatrol/ActionsDurigPatrol.jsx | 67 +++-- .../Forms/CreatePatrol/CompeleteRequest.jsx | 115 ++++---- .../CreatePatrol/EditActionDuringPatrol.jsx | 14 +- .../CreatePatrol/ModalActionsDuringPatrol.jsx | 13 +- .../Forms/CreatePatrol/PatrolDetail.jsx | 248 ++++++++++-------- .../Forms/CreatePatrol/PatrolDetailInfo.jsx | 152 +++++------ .../Forms/CreatePatrol/PatrolForms.jsx | 50 ++-- .../Forms/CreatePatrol/PatrolMapFeatures.jsx | 30 +-- .../CreatePatrol/PatrolResultCodeErrors.jsx | 10 +- .../Forms/CreatePatrol/PatrolTimeLine.jsx | 104 ++++---- .../Forms/CreatePatrol/PhoneValidation.jsx | 68 ++--- .../Forms/CreatePatrol/SuperVisorInfo.jsx | 40 +-- .../Forms/CreatePatrol/SuperVisorsDetail.jsx | 78 +++--- .../operator/Forms/CreatePatrol/index.jsx | 9 +- .../roadPatrols/operator/Toolbar.jsx | 10 +- .../dashboard/roadPatrols/operator/index.jsx | 6 +- .../roadPatrols/supervisor/index.jsx | 6 +- src/core/utils/formatCounter.js | 8 +- src/core/utils/pageMenu.js | 78 +++--- src/lib/hooks/useRequest.js | 8 +- 28 files changed, 718 insertions(+), 640 deletions(-) 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 cfb5a36..ea86df8 100644 --- a/src/components/dashboard/roadItems/operator/Actions/Create/Forms/CreateFormContent.jsx +++ b/src/components/dashboard/roadItems/operator/Actions/Create/Forms/CreateFormContent.jsx @@ -1,9 +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 {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"; @@ -16,7 +16,7 @@ import GetSubItemsForm from "@/components/dashboard/roadItems/operator/Actions/C import GetItemInfo from "@/components/dashboard/roadItems/operator/Actions/Create/Forms/GetItemInfo"; function TabPanel(props) { - const {children, value, index} = props; + const { children, value, index } = props; return (