Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add inviter name to invite email subject #9604

Merged
merged 4 commits into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/server/email/teamInviteEmailCreator.tsx
Original file line number Diff line number Diff line change
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
Loading