From cc14575bdf36dbdfd2130252df34e7437315c88d Mon Sep 17 00:00:00 2001 From: subinqkim Date: Sat, 13 Apr 2024 16:23:35 -0700 Subject: [PATCH] Fixed email for new user acc creation --- src/components/Authentication/SignUp.jsx | 2 +- src/components/EmailTemplates/emailtemplate.jsx | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Authentication/SignUp.jsx b/src/components/Authentication/SignUp.jsx index 5d68d11..95a1c98 100644 --- a/src/components/Authentication/SignUp.jsx +++ b/src/components/Authentication/SignUp.jsx @@ -48,7 +48,7 @@ const SignUp = () => { await registerWithEmailAndPassword(email, password, USER_ROLE, navigate, '/awaitConfirmation', firstName, lastName); // send email to Debbie - const subject = "placeholder"; + const subject = "New User Created Account"; const newEmail = email; await sendEmail(subject, newEmail, emailtemplate); diff --git a/src/components/EmailTemplates/emailtemplate.jsx b/src/components/EmailTemplates/emailtemplate.jsx index cafbeab..f5bf224 100644 --- a/src/components/EmailTemplates/emailtemplate.jsx +++ b/src/components/EmailTemplates/emailtemplate.jsx @@ -1,13 +1,15 @@ //import React from 'react'; -import { Email, Item, Span, A } from 'react-html-email'; +import { Email, Item, Span } from 'react-html-email'; const emailTemplate = ({newEmail}) => ( Hello Debbie, - A user with the email {newEmail} has created an account and is waiting for your approval. - react-html-email. + + A user with the email {newEmail} has created an account and is waiting for your approval. + + Thank you.