Skip to content

Commit

Permalink
chore: email format
Browse files Browse the repository at this point in the history
move greeting into the header
  • Loading branch information
jlangy committed Dec 18, 2023
1 parent 51830ca commit 03ec4b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/pages/custom-realm-dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ function CustomRealmDashboard({ defaultRealmRequests, alert }: Props) {
});
}
alert.show({
variant: 'success',
fadeOut: 3500,
closable: true,
content: `Deleted request id ${id} successfully.`,
Expand Down
5 changes: 1 addition & 4 deletions app/utils/mailer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const emailHeader = `
</svg>
</div>
</header>
<p>Hello Pathfinder SSO friend,</p>
`;

const emailFooter = `
Expand Down Expand Up @@ -157,8 +158,6 @@ export const sendCreateEmail = (realm: RealmProfile) => {
body: `
${emailHeader}
<main style="padding: 0 30px;">
<p>Hello Pathfinder SSO friend,</p>
<br />
<p>We have received your request for a Custom Realm. Please be assured that someone from our team is looking
into
your request and will reach out soon.</p>
Expand All @@ -180,7 +179,6 @@ export const sendDeleteEmail = (realm: Roster, session: Session) => {
to,
body: `
${emailHeader}
<p>Hello Pathfinder SSO friend,</p>
<p>We have received a request from ${username} for the deletion of ${realm.realm} Custom Realm. It will be deleted at approximately ${githubActionTriggerHour} as per our automated processes. Please contact the SSO team ASAP if you have any concerns.</p>
${emailFooter}
`,
Expand All @@ -195,7 +193,6 @@ export const sendDeletionCompleteEmail = (realm: Roster) => {
to,
body: `
${emailHeader}
<p>Hello Pathfinder SSO friend,</p>
<p>This is to inform you that ${realm.realm} Custom Realm has now been deleted.</p>
${emailFooter}
`,
Expand Down

0 comments on commit 03ec4b5

Please sign in to comment.