From 904e70cd846ed105166326cea55280b9816fff6f Mon Sep 17 00:00:00 2001 From: Mohammad Jalali Date: Tue, 2 Jan 2024 11:08:59 +0330 Subject: [PATCH] debug amount unit problem in confirm forms --- .../Form/ConfirmForm/ConfirmContent.jsx | 4 ++-- .../Form/ConfirmForm/ConfirmContent.jsx | 8 ++++---- .../Form/ConfirmForm/ConfirmContent.jsx | 11 ++++++----- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/components/dashboard/navgan-province-manager/Form/ConfirmForm/ConfirmContent.jsx b/src/components/dashboard/navgan-province-manager/Form/ConfirmForm/ConfirmContent.jsx index 02c5348..d63cd63 100644 --- a/src/components/dashboard/navgan-province-manager/Form/ConfirmForm/ConfirmContent.jsx +++ b/src/components/dashboard/navgan-province-manager/Form/ConfirmForm/ConfirmContent.jsx @@ -169,12 +169,12 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, handleSizeChangeCl {loading ? : <> diff --git a/src/components/dashboard/passenger-boss/Form/ConfirmForm/ConfirmContent.jsx b/src/components/dashboard/passenger-boss/Form/ConfirmForm/ConfirmContent.jsx index 8cc3c4a..96b000d 100644 --- a/src/components/dashboard/passenger-boss/Form/ConfirmForm/ConfirmContent.jsx +++ b/src/components/dashboard/passenger-boss/Form/ConfirmForm/ConfirmContent.jsx @@ -133,8 +133,8 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, vehicle_type, hand if (values.description != "") formData.append("expert_description", values.description); const attachments = [ - { title: 'فرم الف', file: values.first_img }, - { title: 'فرم ب', file: values.second_img } + {title: 'فرم الف', file: values.first_img}, + {title: 'فرم ب', file: values.second_img} ]; attachments.forEach((attachment, index) => { @@ -142,7 +142,7 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, vehicle_type, hand formData.append(`attachment[${index}][file]`, attachment.file); }); - requestServer(`${CONFIRM_PASSENGER_BOSS}/${rowId}`, 'post',{ + requestServer(`${CONFIRM_PASSENGER_BOSS}/${rowId}`, 'post', { notification: true, data: formData, }).then((response) => { @@ -220,7 +220,7 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, vehicle_type, hand {loading ? : <> diff --git a/src/components/dashboard/transportation-assistance/Form/ConfirmForm/ConfirmContent.jsx b/src/components/dashboard/transportation-assistance/Form/ConfirmForm/ConfirmContent.jsx index ae1ceea..825bacc 100644 --- a/src/components/dashboard/transportation-assistance/Form/ConfirmForm/ConfirmContent.jsx +++ b/src/components/dashboard/transportation-assistance/Form/ConfirmForm/ConfirmContent.jsx @@ -2,10 +2,11 @@ import UploadSystem from "@/core/components/UploadSystem"; import useNotification from "@/lib/app/hooks/useNotification"; import useRequest from "@/lib/app/hooks/useRequest"; import { - Box, - Button, Checkbox, + Button, + Checkbox, DialogActions, - DialogContent, FormControlLabel, + DialogContent, + FormControlLabel, FormHelperText, Grid, LinearProgress, @@ -179,12 +180,12 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, handleSizeChangeCl {loading ? : <>