diff --git a/src/components/dashboard/passenger-office/Form/ConfirmForm.jsx b/src/components/dashboard/passenger-office/Form/ConfirmForm.jsx index f5adf2f..738428a 100644 --- a/src/components/dashboard/passenger-office/Form/ConfirmForm.jsx +++ b/src/components/dashboard/passenger-office/Form/ConfirmForm.jsx @@ -1,3 +1,4 @@ +import { CONFIRM_PASSENGER_OFFICE } from "@/core/data/apiRoutes"; import { Dialog, DialogTitle, @@ -13,11 +14,12 @@ const ConfirmForm = ({ handleClose, handleDelete, rowId, - deleteData, + confirmData, }) => { const t = useTranslations(); - const handleDeleteExpert = () => { + const handleConfirm = () => { handleDelete(); + confirmData(CONFIRM_PASSENGER_OFFICE, rowId); }; return ( @@ -26,7 +28,7 @@ const ConfirmForm = ({ {t("ConfirmDialog.context")} -