formatting
This commit is contained in:
@@ -34,7 +34,7 @@ const RegisterAction = ({ rowId, mutate }) => {
|
||||
mutate();
|
||||
setOpenRegisterActionDialog(false);
|
||||
})
|
||||
.catch(() => { });
|
||||
.catch(() => {});
|
||||
};
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -52,7 +52,7 @@ const EditController = ({ rowId, mutate, setOpenEditDialog }) => {
|
||||
mutate();
|
||||
setOpenEditDialog(false);
|
||||
})
|
||||
.catch(() => { });
|
||||
.catch(() => {});
|
||||
};
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -34,7 +34,7 @@ const StepThreeContent = ({ setOpen, mutate, rowId }) => {
|
||||
mutate();
|
||||
setOpen(false);
|
||||
})
|
||||
.catch((error) => { });
|
||||
.catch((error) => {});
|
||||
};
|
||||
return (
|
||||
<StyledForm onSubmit={handleSubmit(onSubmit)}>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user