|
|
@@ -52,16 +52,16 @@ export const warningDialog = (text, t) => { |
|
|
|
} |
|
|
|
|
|
|
|
export const submitDialog = async (confirmAction, t, {...props} = { |
|
|
|
title: null, |
|
|
|
confirmButtonText: null |
|
|
|
title: t("Do you want to submit?"), |
|
|
|
confirmButtonText: t("Submit"), |
|
|
|
}) => { |
|
|
|
// console.log(props) |
|
|
|
console.log(props) |
|
|
|
// const { t } = useTranslation("common") |
|
|
|
const result = await Swal.fire({ |
|
|
|
icon: "question", |
|
|
|
title: props?.title ?? t("Do you want to submit?"), |
|
|
|
title: props?.title, |
|
|
|
cancelButtonText: t("Cancel"), |
|
|
|
confirmButtonText: props?.confirmButtonText ?? t("Submit"), |
|
|
|
confirmButtonText: props?.confirmButtonText, |
|
|
|
showCancelButton: true, |
|
|
|
showConfirmButton: true, |
|
|
|
customClass: { |
|
|
|