feat: update team email templates. (#1229)

Updates the email templates to include team information when sent
from a team context.
This commit is contained in:
Ephraim Duncan
2024-08-20 05:41:19 +00:00
committed by GitHub
parent 7a1341eb74
commit 2c9136498c
7 changed files with 127 additions and 17 deletions

View File

@ -12,6 +12,8 @@ export interface TemplateDocumentInviteProps {
assetBaseUrl: string;
role: RecipientRole;
selfSigner: boolean;
isTeamInvite: boolean;
teamName?: string;
}
export const TemplateDocumentInvite = ({
@ -21,6 +23,8 @@ export const TemplateDocumentInvite = ({
assetBaseUrl,
role,
selfSigner,
isTeamInvite,
teamName,
}: TemplateDocumentInviteProps) => {
const { actionVerb, progressiveVerb } = RECIPIENT_ROLES_DESCRIPTION[role];
@ -36,6 +40,12 @@ export const TemplateDocumentInvite = ({
<br />
{`"${documentName}"`}
</>
) : isTeamInvite ? (
<>
{`${inviterName} on behalf of ${teamName} has invited you to ${actionVerb.toLowerCase()}`}
<br />
{`"${documentName}"`}
</>
) : (
<>
{`${inviterName} has invited you to ${actionVerb.toLowerCase()}`}