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