Skip to content

Commit

Permalink
Feat/send tickets (#418)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* 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 <[email protected]>
  • Loading branch information
Suboyyy and Antoine D authored Nov 27, 2024
1 parent f2ffe21 commit 36db6b9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/modules/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 36db6b9

Please sign in to comment.