From 7639898c3aed59a06fdc71312fccdf89d70ec6d8 Mon Sep 17 00:00:00 2001 From: AminGhasempoor Date: Sun, 24 Dec 2023 10:52:37 +0330 Subject: [PATCH] confirm navgan province manager show tanafos and sakht period --- .../dashboard/machinary-office/index.jsx | 5 -- .../Form/ConfirmForm/ConfirmContent.jsx | 52 ++++++++----------- .../dashboard/passenger-boss/index.jsx | 5 -- .../transportation-assistance/index.jsx | 5 -- 4 files changed, 21 insertions(+), 46 deletions(-) diff --git a/src/components/dashboard/machinary-office/index.jsx b/src/components/dashboard/machinary-office/index.jsx index 79623c4..853c065 100644 --- a/src/components/dashboard/machinary-office/index.jsx +++ b/src/components/dashboard/machinary-office/index.jsx @@ -155,14 +155,9 @@ function DashboardMachinaryOfficeComponent() { ], [] ); - const data = [{ - id: 1, - vehicle_type: "مینی بوس" - }] return ( { const t = useTranslations(); @@ -137,35 +137,6 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, handleSizeChangeCl return null; }; - const numberShowBox = () => { - return ( - <> - - {t("ConfirmDialog.proposed_amount")} - - {isNaN((detailsList?.data?.proposed_amount) / 10) - ? "" - : ((detailsList?.data?.proposed_amount) / 10).toLocaleString()}{" "} - {t("ConfirmDialog.unit")} - - - - {t("ConfirmDialog.approved_amount")} {t("secondary.passenger-boss")} - - {isNaN((detailsList?.data?.approved_amount) / 10) - ? "" - : ((detailsList?.data?.approved_amount) / 10).toLocaleString()}{" "} - {t("ConfirmDialog.unit")} - - - - ); - }; - return ( <> @@ -173,7 +144,26 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, handleSizeChangeCl {loading ? : <> - {numberShowBox()} + + + + {renderCustomAccordions()} } diff --git a/src/components/dashboard/passenger-boss/index.jsx b/src/components/dashboard/passenger-boss/index.jsx index 581f099..13674dc 100644 --- a/src/components/dashboard/passenger-boss/index.jsx +++ b/src/components/dashboard/passenger-boss/index.jsx @@ -175,14 +175,9 @@ function DashboardPassengerOfficeComponent() { ], [] ); - const data = [{ - id: 1, - vehicle_type: "مینی بوس" - }] return (