diff --git a/src/components/dashboard/fastReact/complaintList/Form/registerAction/index.jsx b/src/components/dashboard/fastReact/complaintList/Form/registerAction/index.jsx index ccf4e22..6466dab 100644 --- a/src/components/dashboard/fastReact/complaintList/Form/registerAction/index.jsx +++ b/src/components/dashboard/fastReact/complaintList/Form/registerAction/index.jsx @@ -34,7 +34,7 @@ const RegisterAction = ({ rowId, mutate }) => { mutate(); setOpenRegisterActionDialog(false); }) - .catch(() => { }); + .catch(() => {}); }; return ( <> diff --git a/src/components/dashboard/fastReact/operator/Form/EditForm/EditController.jsx b/src/components/dashboard/fastReact/operator/Form/EditForm/EditController.jsx index b95f106..6a46985 100644 --- a/src/components/dashboard/fastReact/operator/Form/EditForm/EditController.jsx +++ b/src/components/dashboard/fastReact/operator/Form/EditForm/EditController.jsx @@ -52,7 +52,7 @@ const EditController = ({ rowId, mutate, setOpenEditDialog }) => { mutate(); setOpenEditDialog(false); }) - .catch(() => { }); + .catch(() => {}); }; return ( <> diff --git a/src/components/dashboard/roadSafety/operator/Form/StepOne/CreateFormContent.jsx b/src/components/dashboard/roadSafety/operator/Form/StepOne/CreateFormContent.jsx index 1d3e4b1..ca96b6e 100644 --- a/src/components/dashboard/roadSafety/operator/Form/StepOne/CreateFormContent.jsx +++ b/src/components/dashboard/roadSafety/operator/Form/StepOne/CreateFormContent.jsx @@ -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 ( diff --git a/src/components/dashboard/roadSafety/operator/Form/StepThree/StepThreeContent.jsx b/src/components/dashboard/roadSafety/operator/Form/StepThree/StepThreeContent.jsx index 296ac53..e3916d1 100644 --- a/src/components/dashboard/roadSafety/operator/Form/StepThree/StepThreeContent.jsx +++ b/src/components/dashboard/roadSafety/operator/Form/StepThree/StepThreeContent.jsx @@ -34,7 +34,7 @@ const StepThreeContent = ({ setOpen, mutate, rowId }) => { mutate(); setOpen(false); }) - .catch((error) => { }); + .catch((error) => {}); }; return ( diff --git a/src/components/dashboard/roadSafety/operator/Form/StepTwo/StepTwoContent.jsx b/src/components/dashboard/roadSafety/operator/Form/StepTwo/StepTwoContent.jsx index 6276545..1b9099d 100644 --- a/src/components/dashboard/roadSafety/operator/Form/StepTwo/StepTwoContent.jsx +++ b/src/components/dashboard/roadSafety/operator/Form/StepTwo/StepTwoContent.jsx @@ -53,7 +53,7 @@ const StepTwoContent = ({ setOpenStepTwoDialog, mutate, rowId }) => { mutate(); setOpenStepTwoDialog(false); }) - .catch((error) => { }); + .catch((error) => {}); }; return ( @@ -86,9 +86,13 @@ const StepTwoContent = ({ setOpenStepTwoDialog, mutate, rowId }) => { {selectedDamageItemList.length === 0 && ( - + فایل موردنظر را بارگذاری کنید. diff --git a/src/components/dashboard/roadSafety/operator/OperatorList.jsx b/src/components/dashboard/roadSafety/operator/OperatorList.jsx index 70fd413..f16423b 100644 --- a/src/components/dashboard/roadSafety/operator/OperatorList.jsx +++ b/src/components/dashboard/roadSafety/operator/OperatorList.jsx @@ -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 = () => { {row.original.judiciary_document_upload_date !== "0000-00-00 00:00:00" ? ( - ) : (<>-)} + ) : ( + <>- + )} ); }, diff --git a/src/components/dashboard/roadSafety/operator/RowActions/index.jsx b/src/components/dashboard/roadSafety/operator/RowActions/index.jsx index 8513aac..e5be7ee 100644 --- a/src/components/dashboard/roadSafety/operator/RowActions/index.jsx +++ b/src/components/dashboard/roadSafety/operator/RowActions/index.jsx @@ -11,9 +11,7 @@ const RowActions = ({ row, mutate }) => { {row.original?.step === 1 && } {row.original?.step === 2 && } - {hasDeletePermission && ( - - )} + {hasDeletePermission && } ); };