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(); mutate();
setOpenRegisterActionDialog(false); setOpenRegisterActionDialog(false);
}) })
.catch(() => { }); .catch(() => {});
}; };
return ( return (
<> <>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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