From e73de8f5aab6fc47310437354c89a209771f3607 Mon Sep 17 00:00:00 2001 From: Daniel Pereira <46000449+danielsp45@users.noreply.github.com> Date: Thu, 28 Mar 2024 21:25:17 +0000 Subject: [PATCH] feat: add team entry email & enhance confirmation modal (#42) --- src/components/confirmationModal.jsx | 4 +-- src/pages/api/teams/join.ts | 50 ++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/src/components/confirmationModal.jsx b/src/components/confirmationModal.jsx index 47f11637..8caa3236 100644 --- a/src/components/confirmationModal.jsx +++ b/src/components/confirmationModal.jsx @@ -1,10 +1,10 @@ export default function ConfirmationModal({ placeHolder, closeModal }) { return (
-
+

Hello again 👋

+
+

You just entered a new team - ${team_name}

+

Looking forward to seeing you soon!

+

Organization team 🪲

+
`.toString(), + alternative: true, + }, + ], + }; + + try { + client.send(message, function (err, message) { + console.log(err || message); + }); + + return null; + } catch (error) { + return error; + } +};