change style

This commit is contained in:
AmirHossein Mahmoodi
2025-03-04 16:14:49 +03:30
parent 62da75f580
commit ab2b8374ad
5 changed files with 13 additions and 12 deletions

View File

@@ -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 }) => {
خطا در دریافت لیست آیتم ها
</Typography>
) : loadingItemsList ? (
<LinearProgress />
<DialogLoading />
) : (
<Grid container sx={{ justifyContent: "center" }} spacing={2}>
{itemsList.map((item) => (

View File

@@ -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
خطا در دریافت اقدام انجام شده
</Typography>
) : loadingSubItemsList ? (
<LinearProgress />
<DialogLoading />
) : (
<Grid container sx={{ justifyContent: "center" }} spacing={2}>
{subItemsList.map((item) => (

View File

@@ -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 ? (
<LinearProgress />
<DialogLoading />
) : errorItemsList ? (
<Typography textAlign={"center"} color={"error.main"}>
خطا در دریافت اطلاعات!!!

View File

@@ -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 })
خطا در دریافت اطلاعات!!!
</Typography>
) : loadingSubItemsList ? (
<LinearProgress />
<DialogLoading />
) : (
<EditFormCreate
onSubmitBase={onSubmitBase}

View File

@@ -84,7 +84,7 @@ const EditFormCreate = ({ defaultData, subItem, onSubmitBase, defaultValues, set
return (
<StyledForm onSubmit={handleSubmit(onSubmitBase)} id="edit_road_items">
<DialogContent sx={{ overflowY: "auto", maxHeight: "70vh" }}>
<DialogContent dividers sx={{ overflowY: "auto", maxHeight: "70vh" }}>
<Stack spacing={2}>
<Stack>
{subItem.needs_image === 1 ? (