formatting

This commit is contained in:
AmirHossein Mahmoodi
2025-09-07 11:16:04 +03:30
parent 19dd89839b
commit b07fa07f19
6 changed files with 9 additions and 7 deletions

View File

@@ -175,7 +175,7 @@ const CreateFormContent = ({ setOpen, SubmitDamage, defaultData }) => {
"damage_picture2",
];
} else if (tabState === 1) {
fieldsToValidate = ["report_base", "police_file", "police_file_date", "police_serial", 'driver_rate'];
fieldsToValidate = ["report_base", "police_file", "police_file_date", "police_serial", "driver_rate"];
} else if (tabState === 2) {
fieldsToValidate = ["items_damage"];
}

View File

@@ -55,7 +55,7 @@ const OperatorCreateForm = ({ open, setOpen, mutate }) => {
mutate();
setOpen(false);
})
.catch(() => { });
.catch(() => {});
};
const defaultData = {
isForeign: "0",

View File

@@ -113,7 +113,9 @@ const CreateFactorContent = ({ row, mutate, rowId, setOpenCreateFactorDialog })
{(row.original?.driver_share_amount / 1).toLocaleString() || "0"} ریال
</Typography>
</Grid>
<Grid item xs={12} sm={12} sx={{ display: "flex" }}><Divider sx={{ flex: 1 }} /></Grid>
<Grid item xs={12} sm={12} sx={{ display: "flex" }}>
<Divider sx={{ flex: 1 }} />
</Grid>
<Grid item xs={12} sm={12} sx={{ display: "flex", alignItems: "center" }}>
<Box sx={{ display: "flex", alignItems: "center" }}>
<Chip

View File

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

View File

@@ -127,7 +127,7 @@ const RegisterInsuranceContent = ({ setOpenRegisterInsuranceDialog, row, mutate,
});
mutate();
setOpenRegisterInsuranceDialog(false);
} catch (error) { }
} catch (error) {}
};
return (
<StyledForm onSubmit={handleSubmit(onSubmitBase)}>

View File

@@ -162,8 +162,8 @@ const OperatorList = () => {
props.dependencyFieldValue?.value === ""
? "empty"
: loadingCityList
? "loading"
: props.filterParameters.value
? "loading"
: props.filterParameters.value
}
columnSelectOption={getColumnSelectOptions}
/>