Skip to content

Commit

Permalink
Fixed email for new user acc creation
Browse files Browse the repository at this point in the history
  • Loading branch information
SubinQKim committed Apr 13, 2024
1 parent 47c0f96 commit cc14575
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Authentication/SignUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
8 changes: 5 additions & 3 deletions src/components/EmailTemplates/emailtemplate.jsx
Original file line number Diff line number Diff line change
@@ -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}) => (
<Email title="New User Account Approval">
<Item align="center">
<Span fontSize={20}>
Hello Debbie,
A user with the email {newEmail} has created an account and is waiting for your approval.
<A href="https://github.com/chromakode/react-html-email">react-html-email</A>.

A user with the email {newEmail} has created an account and is waiting for your approval.

Thank you.
</Span>
</Item>
</Email>
Expand Down

0 comments on commit cc14575

Please sign in to comment.