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", "damage_picture2",
]; ];
} else if (tabState === 1) { } 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) { } else if (tabState === 2) {
fieldsToValidate = ["items_damage"]; fieldsToValidate = ["items_damage"];
} }

View File

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

View File

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

View File

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

View File

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

View File

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