Skip to content

Commit

Permalink
chore: Add inviter name to invite email subject (#9604)
Browse files Browse the repository at this point in the history
Co-authored-by: Muneeb-Ventures <mohd.muneeb@m0.ventures>
  • Loading branch information
Mohd-Muneeb and Muneeb-Ventures committed Apr 8, 2024
1 parent cb52596 commit cd5a3a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/email/teamInviteEmailCreator.tsx
Expand Up @@ -3,7 +3,7 @@ import TeamInvite, {TeamInviteProps} from 'parabol-client/modules/email/componen
import {headCSS} from 'parabol-client/modules/email/styles'
import React from 'react'

const subject = 'You’ve been invited to Parabol'
const subject = (inviterName: string) : string => `${inviterName} has invited you to Parabol`

const teamInviteText = (props: TeamInviteProps) => {
const {inviteeName, inviteeEmail, inviterName, inviterEmail, inviteLink, teamName} = props
Expand All @@ -22,7 +22,7 @@ The Parabol Product Team
}

export default (props: TeamInviteProps) => ({
subject,
subject: subject(props.inviterName),
body: teamInviteText(props),
html: Oy.renderTemplate(<TeamInvite {...props} />, {
headCSS,
Expand Down

0 comments on commit cd5a3a8

Please sign in to comment.