formatting

This commit is contained in:
AmirHossein Mahmoodi
2025-03-04 16:46:53 +03:30
parent 84fdac3317
commit c9410da5ef
7 changed files with 20 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ const RegisterAction = ({ rowId, mutate }) => {
mutate();
setOpenRegisterActionDialog(false);
})
.catch(() => { });
.catch(() => {});
};
return (
<>

View File

@@ -52,7 +52,7 @@ const EditController = ({ rowId, mutate, setOpenEditDialog }) => {
mutate();
setOpenEditDialog(false);
})
.catch(() => { });
.catch(() => {});
};
return (
<>

View File

@@ -42,7 +42,7 @@ const CreateFormContent = ({ setOpen, mutate }) => {
const [itemsList, setItemsList] = useState();
const defaultValues = {
info_id: null,
axis_type_id: '',
axis_type_id: "",
recognize_picture: null,
activity_date: "",
activity_time: "",
@@ -95,7 +95,7 @@ const CreateFormContent = ({ setOpen, mutate }) => {
mutate();
setOpen(false);
})
.catch((error) => { });
.catch((error) => {});
};
return (

View File

@@ -34,7 +34,7 @@ const StepThreeContent = ({ setOpen, mutate, rowId }) => {
mutate();
setOpen(false);
})
.catch((error) => { });
.catch((error) => {});
};
return (
<StyledForm onSubmit={handleSubmit(onSubmit)}>

View File

@@ -53,7 +53,7 @@ const StepTwoContent = ({ setOpenStepTwoDialog, mutate, rowId }) => {
mutate();
setOpenStepTwoDialog(false);
})
.catch((error) => { });
.catch((error) => {});
};
return (
<StyledForm onSubmit={handleSubmit(onSubmit)}>
@@ -86,9 +86,13 @@ const StepTwoContent = ({ setOpenStepTwoDialog, mutate, rowId }) => {
<Chip variant="outlined" label="لیست مستندات قضایی" />
</Divider>
{selectedDamageItemList.length === 0 && (
<Box sx={{
my: 4, width: "100%", textAlign: "center"
}}>
<Box
sx={{
my: 4,
width: "100%",
textAlign: "center",
}}
>
<Typography variant="h6" sx={{ letterSpacing: "2px", color: "#606060" }}>
فایل موردنظر را بارگذاری کنید.
</Typography>

View File

@@ -133,8 +133,8 @@ const OperatorList = () => {
props.dependencyFieldValue?.value === ""
? "empty"
: loadingEdaratList
? "loading"
: props.filterParameters.value
? "loading"
: props.filterParameters.value
}
columnSelectOption={getColumnSelectOptions}
/>
@@ -180,8 +180,7 @@ const OperatorList = () => {
label: status.label,
}));
},
Cell: ({ row }) =>
row.original?.axis_type_name ? <>{row.original.axis_type_name}</> : <>-</>,
Cell: ({ row }) => (row.original?.axis_type_name ? <>{row.original.axis_type_name}</> : <>-</>),
},
{
accessorKey: "location",
@@ -296,7 +295,9 @@ const OperatorList = () => {
<Stack alignItems={"center"} justifyContent={"center"}>
{row.original.judiciary_document_upload_date !== "0000-00-00 00:00:00" ? (
<JudiciaryDocumentDialog rowId={row.getValue("id")} />
) : (<>-</>)}
) : (
<>-</>
)}
</Stack>
);
},

View File

@@ -11,9 +11,7 @@ const RowActions = ({ row, mutate }) => {
<Box sx={{ display: "flex", gap: 1 }}>
{row.original?.step === 1 && <StepTwo mutate={mutate} rowId={row.getValue("id")} />}
{row.original?.step === 2 && <StepThree mutate={mutate} rowId={row.getValue("id")} />}
{hasDeletePermission && (
<DeleteForm rowId={row.getValue("id")} mutate={mutate} />
)}
{hasDeletePermission && <DeleteForm rowId={row.getValue("id")} mutate={mutate} />}
</Box>
);
};