From ab2b8374ad98f95fe5056901249cca9dd50f6cde Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Tue, 4 Mar 2025 16:14:49 +0330 Subject: [PATCH] change style --- .../operator/Actions/Create/Forms/GetItemsForm.jsx | 8 ++++---- .../operator/Actions/Create/Forms/GetSubItemsForm.jsx | 6 +++--- .../Actions/ObservedGashtCreate/SearchItemInfo.jsx | 6 +++--- .../operator/RowActions/EditForm/EditFormContent.jsx | 3 ++- .../operator/RowActions/EditForm/EditFormCreate.jsx | 2 +- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/components/dashboard/roadItems/operator/Actions/Create/Forms/GetItemsForm.jsx b/src/components/dashboard/roadItems/operator/Actions/Create/Forms/GetItemsForm.jsx index e7daaa8..de689e1 100644 --- a/src/components/dashboard/roadItems/operator/Actions/Create/Forms/GetItemsForm.jsx +++ b/src/components/dashboard/roadItems/operator/Actions/Create/Forms/GetItemsForm.jsx @@ -1,7 +1,7 @@ -import React from "react"; -import { Card, CardActionArea, Grid, LinearProgress, Typography } from "@mui/material"; -import Image from "next/image"; +import DialogLoading from "@/core/components/DialogLoading"; import useRoadItemGetItems from "@/lib/hooks/useRoadItemGetItems"; +import { Card, CardActionArea, Grid, Typography } from "@mui/material"; +import Image from "next/image"; const GetItemsForm = ({ setValue, setItemsList, tabState, setTabState }) => { const { itemsList, loadingItemsList, errorItemsList } = useRoadItemGetItems(); @@ -13,7 +13,7 @@ const GetItemsForm = ({ setValue, setItemsList, tabState, setTabState }) => { خطا در دریافت لیست آیتم ها ) : loadingItemsList ? ( - + ) : ( {itemsList.map((item) => ( diff --git a/src/components/dashboard/roadItems/operator/Actions/Create/Forms/GetSubItemsForm.jsx b/src/components/dashboard/roadItems/operator/Actions/Create/Forms/GetSubItemsForm.jsx index 9b6bc8e..dc84c40 100644 --- a/src/components/dashboard/roadItems/operator/Actions/Create/Forms/GetSubItemsForm.jsx +++ b/src/components/dashboard/roadItems/operator/Actions/Create/Forms/GetSubItemsForm.jsx @@ -1,6 +1,6 @@ -import React from "react"; -import { Card, CardActionArea, Grid, LinearProgress, Typography } from "@mui/material"; +import DialogLoading from "@/core/components/DialogLoading"; import useRoadItemGetSubItems from "@/lib/hooks/useRoadItemGetISubtems"; +import { Card, CardActionArea, Grid, Typography } from "@mui/material"; const GetSubItemsForm = ({ setValue, watch, setSubItemsList, tabState, setTabState }) => { const { subItemsList, loadingSubItemsList, errorSubItemsList } = useRoadItemGetSubItems(watch("item_id")); @@ -12,7 +12,7 @@ const GetSubItemsForm = ({ setValue, watch, setSubItemsList, tabState, setTabSta خطا در دریافت اقدام انجام شده ) : loadingSubItemsList ? ( - + ) : ( {subItemsList.map((item) => ( diff --git a/src/components/dashboard/roadItems/operator/Actions/ObservedGashtCreate/SearchItemInfo.jsx b/src/components/dashboard/roadItems/operator/Actions/ObservedGashtCreate/SearchItemInfo.jsx index 611e7d8..6c270c9 100644 --- a/src/components/dashboard/roadItems/operator/Actions/ObservedGashtCreate/SearchItemInfo.jsx +++ b/src/components/dashboard/roadItems/operator/Actions/ObservedGashtCreate/SearchItemInfo.jsx @@ -1,6 +1,6 @@ -import { LinearProgress, Typography } from "@mui/material"; +import DialogLoading from "@/core/components/DialogLoading"; import useRoadItemGetItems from "@/lib/hooks/useRoadItemGetItems"; -import React from "react"; +import { Typography } from "@mui/material"; import SearchItems from "./SearchItems"; import TableInfo from "./TableInfo"; @@ -18,7 +18,7 @@ const SearchItemInfo = ({ return ( <> {loadingItemsList ? ( - + ) : errorItemsList ? ( خطا در دریافت اطلاعات!!! diff --git a/src/components/dashboard/roadItems/operator/RowActions/EditForm/EditFormContent.jsx b/src/components/dashboard/roadItems/operator/RowActions/EditForm/EditFormContent.jsx index c49d50d..43c8823 100644 --- a/src/components/dashboard/roadItems/operator/RowActions/EditForm/EditFormContent.jsx +++ b/src/components/dashboard/roadItems/operator/RowActions/EditForm/EditFormContent.jsx @@ -1,4 +1,5 @@ import EditFormCreate from "@/components/dashboard/roadItems/operator/RowActions/EditForm/EditFormCreate"; +import DialogLoading from "@/core/components/DialogLoading"; import useRoadItemGetISubtems from "@/lib/hooks/useRoadItemGetISubtems"; import { LinearProgress, Typography } from "@mui/material"; @@ -79,7 +80,7 @@ const EditFormContent = ({ setOpenEditDialog, onSubmit, defaultData, is_gasht }) خطا در دریافت اطلاعات!!! ) : loadingSubItemsList ? ( - + ) : ( - + {subItem.needs_image === 1 ? (