change style
This commit is contained in:
@@ -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) => (
|
||||
|
||||
@@ -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) => (
|
||||
|
||||
@@ -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"}>
|
||||
خطا در دریافت اطلاعات!!!
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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 ? (
|
||||
|
||||
Reference in New Issue
Block a user