From 36db6b98a22292c44f0542a948ac2d4d2a6d1bfe Mon Sep 17 00:00:00 2001 From: Antoine D <106921102+Suboyyy@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:09:45 +0100 Subject: [PATCH] Feat/send tickets (#418) * feat: first step for mail sending * feat: update mail step progression and add default components * feat: implement sending email function and General mail sending panel * fix: handle undefined MailType in sendMails function and add error toast * feat: add preview option to mail sending functionality * feat: add MailRecipient component and styling * feat: refactor mail sending functionality to use sendGeneralMails and update styles * fix: lint * Feat/send tickets (#415) * feat: first step for mail sending * feat: update mail step progression and add default components * feat: implement sending email function and General mail sending panel * fix: handle undefined MailType in sendMails function and add error toast * feat: add preview option to mail sending functionality * feat: add MailRecipient component and styling * feat: refactor mail sending functionality to use sendGeneralMails and update styles * fix: lint --------- Co-authored-by: Antoine D * fix: update default mail content to 'joindiscord' * fix: update success message for sending general mails * fix: remove redundant API call --------- Co-authored-by: Antoine D --- src/modules/admin.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/modules/admin.ts b/src/modules/admin.ts index ea967d67..abf61bee 100644 --- a/src/modules/admin.ts +++ b/src/modules/admin.ts @@ -344,9 +344,6 @@ export const sendGeneralMails = async (generalMail: string, preview: boolean) => await API.post('admin/emails/', { generalMail, preview }, 60000); toast.success('Les mails ont bien été envoyés'); - const response = await API.post('admin/emails/', { generalMail, preview }, 60000); - - toast.success(response); } catch (err) { console.error(err); }