build and format

This commit is contained in:
2026-06-15 11:19:39 +03:30
parent 1e0d3dcf0e
commit e66af994af
6 changed files with 5 additions and 9 deletions

View File

@@ -20,10 +20,7 @@ const MachineAndDriver = ({ setTabState, allData, setAllData, handlePrev }) => {
<>
<Typography variant="body2">راننده</Typography>
<Divider sx={{ flex: 1 }} />
<Chip
label={driver ? `${driver.name}` : "راننده ای انتخاب نشده"}
size="small"
/>
<Chip label={driver ? `${driver.name}` : "راننده ای انتخاب نشده"} size="small" />
<Divider sx={{ flex: 1 }} />
<DriversDialog setDriver={setDriver} mode={"edit"} />
</>

View File

@@ -25,7 +25,7 @@ const RahdaranList = ({ rahdaran, setRahdaran }) => {
my: 1,
}}
>
<Stack direction={"row"} sx={{display : "flex", alignItems : "center"}} spacing={1}>
<Stack direction={"row"} sx={{ display: "flex", alignItems: "center" }} spacing={1}>
<AccountCircle color="primary" sx={{ width: "32px", height: "32px" }} />
<Stack>
<Stack direction={"row"} spacing={0.5}>

View File

@@ -31,7 +31,7 @@ const MissionCorrection = ({ row, mutate, baseMutate }) => {
})
.then((response) => {
mutate();
baseMutate()
baseMutate();
setOpen(false);
})
.catch((error) => {})

View File

@@ -25,7 +25,6 @@ const reducer = (state, action) => {
};
const CreateForm = ({ defaultValues, submitForm, setOpen, submitting, oldBound }) => {
const [allData, dispatch] = useReducer(reducer, defaultValues);
const [tabState, setTabState] = useState(0);
const handleClose = () => {

View File

@@ -55,7 +55,7 @@ const DialogAdd = ({ mutate, setOpen, oldBound, rahdaran, machine, row }) => {
rahdaran: rahdaran.filter((r) => !r.is_driver),
bound_type: "polyline",
type: "",
end_km : "",
end_km: "",
end_date: "",
end_time: null,
end_point: "",

View File

@@ -11,7 +11,7 @@ const EditController = ({ rowId, mutate, setOpen, row }) => {
const defaultData = {
end_date: endDate,
end_km : "",
end_km: "",
end_time: row?.original?.enter_time ? new Date(row.original.enter_time) : null,
};
const handleSubmit = async (result) => {