@vrplatform/email 1.0.2-stage.445 → 1.0.2-stage.44503375470
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main/components/ActionEmailTemplate.d.ts +3 -1
- package/build/main/components/ActionEmailTemplate.js +9 -13
- package/build/main/components/ActionEmailTemplate.js.map +1 -1
- package/build/main/components/Button.js.map +1 -1
- package/build/main/components/EmailContainer.d.ts +4 -1
- package/build/main/components/EmailContainer.js +4 -3
- package/build/main/components/EmailContainer.js.map +1 -1
- package/build/main/components/EmailHeading.d.ts +8 -0
- package/build/main/components/EmailHeading.js +21 -0
- package/build/main/components/EmailHeading.js.map +1 -0
- package/build/main/components/index.d.ts +1 -0
- package/build/main/components/index.js +1 -0
- package/build/main/components/index.js.map +1 -1
- package/build/main/components/utils/parse-email-html.js +13 -4
- package/build/main/components/utils/parse-email-html.js.map +1 -1
- package/build/main/const.d.ts +4 -4
- package/build/main/index.d.ts +1 -1
- package/build/main/index.js +2 -3
- package/build/main/index.js.map +1 -1
- package/build/main/render.d.ts +2 -0
- package/build/main/render.js +24 -0
- package/build/main/render.js.map +1 -0
- package/build/main/templates/BankAccountChangedEmailTemplate.d.ts +12 -0
- package/build/main/templates/BankAccountChangedEmailTemplate.js +12 -0
- package/build/main/templates/BankAccountChangedEmailTemplate.js.map +1 -0
- package/build/main/templates/BankAccountChangedTeamAdminEmailTemplate.d.ts +17 -0
- package/build/main/templates/BankAccountChangedTeamAdminEmailTemplate.js +12 -0
- package/build/main/templates/BankAccountChangedTeamAdminEmailTemplate.js.map +1 -0
- package/build/main/templates/BankDetailsRequestEmailTemplate.d.ts +17 -0
- package/build/main/templates/BankDetailsRequestEmailTemplate.js +15 -0
- package/build/main/templates/BankDetailsRequestEmailTemplate.js.map +1 -0
- package/build/main/templates/InviteOwnerEmailTemplate.d.ts +2 -2
- package/build/main/templates/InviteOwnerEmailTemplate.js +1 -1
- package/build/main/templates/InviteOwnerEmailTemplate.js.map +1 -1
- package/build/main/templates/InvitePmEmailTemplate.d.ts +2 -1
- package/build/main/templates/InvitePmEmailTemplate.js +4 -7
- package/build/main/templates/InvitePmEmailTemplate.js.map +1 -1
- package/build/main/templates/OwnerStatementEmailTemplate.d.ts +38 -3
- package/build/main/templates/OwnerStatementEmailTemplate.js +138 -10
- package/build/main/templates/OwnerStatementEmailTemplate.js.map +1 -1
- package/build/main/templates/SecondFactorResetEmailTemplate.d.ts +11 -0
- package/build/main/templates/SecondFactorResetEmailTemplate.js +19 -0
- package/build/main/templates/SecondFactorResetEmailTemplate.js.map +1 -0
- package/build/main/templates/Tax1099ConsentWithdrawnEmailTemplate.d.ts +9 -0
- package/build/main/templates/Tax1099ConsentWithdrawnEmailTemplate.js +22 -0
- package/build/main/templates/Tax1099ConsentWithdrawnEmailTemplate.js.map +1 -0
- package/build/main/templates/Tax1099EmailTemplate.d.ts +13 -0
- package/build/main/templates/Tax1099EmailTemplate.js +61 -0
- package/build/main/templates/Tax1099EmailTemplate.js.map +1 -0
- package/build/main/templates/TeamApiTokenCreatedEmailTemplate.d.ts +10 -0
- package/build/main/templates/TeamApiTokenCreatedEmailTemplate.js +12 -0
- package/build/main/templates/TeamApiTokenCreatedEmailTemplate.js.map +1 -0
- package/build/main/templates/TeamInviteOutsideDomainEmailTemplate.d.ts +11 -0
- package/build/main/templates/TeamInviteOutsideDomainEmailTemplate.js +12 -0
- package/build/main/templates/TeamInviteOutsideDomainEmailTemplate.js.map +1 -0
- package/build/main/templates/TeamRoleGrantedEmailTemplate.d.ts +12 -0
- package/build/main/templates/TeamRoleGrantedEmailTemplate.js +12 -0
- package/build/main/templates/TeamRoleGrantedEmailTemplate.js.map +1 -0
- package/build/main/templates/TenantDeletionEmailTemplate.js +2 -6
- package/build/main/templates/TenantDeletionEmailTemplate.js.map +1 -1
- package/build/main/templates/TenantSuspensionEmailTemplate.js +2 -6
- package/build/main/templates/TenantSuspensionEmailTemplate.js.map +1 -1
- package/build/main/templates/YearEndStatementEmailTemplate.d.ts +23 -0
- package/build/main/templates/YearEndStatementEmailTemplate.js +37 -0
- package/build/main/templates/YearEndStatementEmailTemplate.js.map +1 -0
- package/build/main/templates/index.d.ts +10 -0
- package/build/main/templates/index.js +12 -0
- package/build/main/templates/index.js.map +1 -1
- package/build/main/theme.js.map +1 -1
- package/build/main/types.d.ts +3 -0
- package/build/main/types.js.map +1 -1
- package/build/main/utils/find-postmark-email.d.ts +8 -0
- package/build/main/utils/find-postmark-email.js +88 -0
- package/build/main/utils/find-postmark-email.js.map +1 -0
- package/build/main/utils/index.d.ts +1 -0
- package/build/main/utils/index.js +1 -0
- package/build/main/utils/index.js.map +1 -1
- package/build/main/utils/send-email.d.ts +28 -3
- package/build/main/utils/send-email.js +142 -22
- package/build/main/utils/send-email.js.map +1 -1
- package/build/module/components/ActionEmailTemplate.d.ts +3 -1
- package/build/module/components/ActionEmailTemplate.js +9 -13
- package/build/module/components/ActionEmailTemplate.js.map +1 -1
- package/build/module/components/EmailContainer.d.ts +4 -1
- package/build/module/components/EmailContainer.js +5 -4
- package/build/module/components/EmailContainer.js.map +1 -1
- package/build/module/components/EmailHeading.d.ts +8 -0
- package/build/module/components/EmailHeading.js +17 -0
- package/build/module/components/EmailHeading.js.map +1 -0
- package/build/module/components/index.d.ts +1 -0
- package/build/module/components/index.js +1 -0
- package/build/module/components/index.js.map +1 -1
- package/build/module/components/utils/parse-email-html.js +13 -4
- package/build/module/components/utils/parse-email-html.js.map +1 -1
- package/build/module/const.d.ts +4 -4
- package/build/module/index.d.ts +1 -1
- package/build/module/index.js +1 -1
- package/build/module/index.js.map +1 -1
- package/build/module/render.d.ts +2 -0
- package/build/module/render.js +20 -0
- package/build/module/render.js.map +1 -0
- package/build/module/templates/BankAccountChangedEmailTemplate.d.ts +12 -0
- package/build/module/templates/BankAccountChangedEmailTemplate.js +8 -0
- package/build/module/templates/BankAccountChangedEmailTemplate.js.map +1 -0
- package/build/module/templates/BankAccountChangedTeamAdminEmailTemplate.d.ts +17 -0
- package/build/module/templates/BankAccountChangedTeamAdminEmailTemplate.js +8 -0
- package/build/module/templates/BankAccountChangedTeamAdminEmailTemplate.js.map +1 -0
- package/build/module/templates/BankDetailsRequestEmailTemplate.d.ts +17 -0
- package/build/module/templates/BankDetailsRequestEmailTemplate.js +11 -0
- package/build/module/templates/BankDetailsRequestEmailTemplate.js.map +1 -0
- package/build/module/templates/InviteOwnerEmailTemplate.d.ts +2 -2
- package/build/module/templates/InviteOwnerEmailTemplate.js +1 -1
- package/build/module/templates/InviteOwnerEmailTemplate.js.map +1 -1
- package/build/module/templates/InvitePmEmailTemplate.d.ts +2 -1
- package/build/module/templates/InvitePmEmailTemplate.js +4 -7
- package/build/module/templates/InvitePmEmailTemplate.js.map +1 -1
- package/build/module/templates/OwnerStatementEmailTemplate.d.ts +38 -3
- package/build/module/templates/OwnerStatementEmailTemplate.js +137 -10
- package/build/module/templates/OwnerStatementEmailTemplate.js.map +1 -1
- package/build/module/templates/SecondFactorResetEmailTemplate.d.ts +11 -0
- package/build/module/templates/SecondFactorResetEmailTemplate.js +15 -0
- package/build/module/templates/SecondFactorResetEmailTemplate.js.map +1 -0
- package/build/module/templates/Tax1099ConsentWithdrawnEmailTemplate.d.ts +9 -0
- package/build/module/templates/Tax1099ConsentWithdrawnEmailTemplate.js +18 -0
- package/build/module/templates/Tax1099ConsentWithdrawnEmailTemplate.js.map +1 -0
- package/build/module/templates/Tax1099EmailTemplate.d.ts +13 -0
- package/build/module/templates/Tax1099EmailTemplate.js +56 -0
- package/build/module/templates/Tax1099EmailTemplate.js.map +1 -0
- package/build/module/templates/TeamApiTokenCreatedEmailTemplate.d.ts +10 -0
- package/build/module/templates/TeamApiTokenCreatedEmailTemplate.js +8 -0
- package/build/module/templates/TeamApiTokenCreatedEmailTemplate.js.map +1 -0
- package/build/module/templates/TeamInviteOutsideDomainEmailTemplate.d.ts +11 -0
- package/build/module/templates/TeamInviteOutsideDomainEmailTemplate.js +8 -0
- package/build/module/templates/TeamInviteOutsideDomainEmailTemplate.js.map +1 -0
- package/build/module/templates/TeamRoleGrantedEmailTemplate.d.ts +12 -0
- package/build/module/templates/TeamRoleGrantedEmailTemplate.js +8 -0
- package/build/module/templates/TeamRoleGrantedEmailTemplate.js.map +1 -0
- package/build/module/templates/TenantDeletionEmailTemplate.js +3 -7
- package/build/module/templates/TenantDeletionEmailTemplate.js.map +1 -1
- package/build/module/templates/TenantSuspensionEmailTemplate.js +3 -7
- package/build/module/templates/TenantSuspensionEmailTemplate.js.map +1 -1
- package/build/module/templates/YearEndStatementEmailTemplate.d.ts +23 -0
- package/build/module/templates/YearEndStatementEmailTemplate.js +32 -0
- package/build/module/templates/YearEndStatementEmailTemplate.js.map +1 -0
- package/build/module/templates/index.d.ts +10 -0
- package/build/module/templates/index.js +12 -0
- package/build/module/templates/index.js.map +1 -1
- package/build/module/types.d.ts +3 -0
- package/build/module/types.js.map +1 -1
- package/build/module/utils/find-postmark-email.d.ts +8 -0
- package/build/module/utils/find-postmark-email.js +52 -0
- package/build/module/utils/find-postmark-email.js.map +1 -0
- package/build/module/utils/index.d.ts +1 -0
- package/build/module/utils/index.js +1 -0
- package/build/module/utils/index.js.map +1 -1
- package/build/module/utils/send-email.d.ts +28 -3
- package/build/module/utils/send-email.js +108 -22
- package/build/module/utils/send-email.js.map +1 -1
- package/package.json +8 -7
- package/src/components/ActionEmailTemplate.tsx +14 -16
- package/src/components/EmailContainer.tsx +20 -4
- package/src/components/EmailHeading.tsx +36 -0
- package/src/components/index.ts +1 -0
- package/src/components/utils/parse-email-html.ts +20 -6
- package/src/index.ts +1 -1
- package/src/render.ts +24 -0
- package/src/templates/BankAccountChangedEmailTemplate.tsx +53 -0
- package/src/templates/BankAccountChangedTeamAdminEmailTemplate.tsx +55 -0
- package/src/templates/BankDetailsRequestEmailTemplate.tsx +63 -0
- package/src/templates/InviteOwnerEmailTemplate.tsx +1 -0
- package/src/templates/InvitePmEmailTemplate.tsx +5 -7
- package/src/templates/OwnerStatementEmailTemplate.tsx +324 -14
- package/src/templates/SecondFactorResetEmailTemplate.tsx +71 -0
- package/src/templates/Tax1099ConsentWithdrawnEmailTemplate.tsx +56 -0
- package/src/templates/Tax1099EmailTemplate.tsx +100 -0
- package/src/templates/TeamApiTokenCreatedEmailTemplate.tsx +50 -0
- package/src/templates/TeamInviteOutsideDomainEmailTemplate.tsx +52 -0
- package/src/templates/TeamRoleGrantedEmailTemplate.tsx +54 -0
- package/src/templates/TenantDeletionEmailTemplate.tsx +9 -10
- package/src/templates/TenantSuspensionEmailTemplate.tsx +9 -10
- package/src/templates/YearEndStatementEmailTemplate.tsx +66 -0
- package/src/templates/index.ts +14 -0
- package/src/types.ts +3 -0
- package/src/utils/find-postmark-email.ts +80 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/send-email.ts +184 -28
|
@@ -10,6 +10,7 @@ export const getDefaultInvitePropertyManagerEmailData = (
|
|
|
10
10
|
args: {
|
|
11
11
|
appName: string;
|
|
12
12
|
signInLink: string;
|
|
13
|
+
teamName: string;
|
|
13
14
|
}
|
|
14
15
|
): ActionEmailData => {
|
|
15
16
|
const signInLink =
|
|
@@ -18,13 +19,13 @@ export const getDefaultInvitePropertyManagerEmailData = (
|
|
|
18
19
|
: `<a href='${args.signInLink}' target='_blank'>${args.signInLink}</a>`;
|
|
19
20
|
|
|
20
21
|
return {
|
|
21
|
-
bodyOne: `<p>You are invited to join
|
|
22
|
+
bodyOne: `<p>You are invited to join ${args.teamName} on ${args.appName}.</p><p>Accept the invitation below to set up your team access.</p>`,
|
|
22
23
|
bodyTwo: `<p>If you have any trouble with the button, you can use the following link below: ${signInLink}</p>`,
|
|
23
24
|
buttonText: 'Accept Invitation',
|
|
24
25
|
header: 'Welcome to the team!',
|
|
25
|
-
shortDescription: `Accept your invitation to join
|
|
26
|
+
shortDescription: `Accept your invitation to join ${args.teamName} on ${args.appName}.`,
|
|
26
27
|
href: args.signInLink,
|
|
27
|
-
subject: `You are invited to join
|
|
28
|
+
subject: `You are invited to join ${args.teamName} on ${args.appName}`,
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
|
|
@@ -32,15 +33,12 @@ export const InvitePmEmailTemplate = (props: ActionEmailTemplateProps) => {
|
|
|
32
33
|
return (
|
|
33
34
|
<ActionEmailTemplate
|
|
34
35
|
{...props}
|
|
36
|
+
eyebrow="Team invitation"
|
|
35
37
|
data={{
|
|
36
38
|
...props.data,
|
|
37
39
|
// Add guidance at render time so saved custom templates receive it too.
|
|
38
40
|
bodyTwo: `${props.data.bodyTwo}<hr style="width:100%;border:none;border-top:1px solid #eaeaea;margin:24px 0" /><p>This invitation link is for one-time setup of your team access and expires after 7 days. Sign up using the exact email address this invitation was sent to.</p><p>If your invitation expires before setup is complete, contact your team administrator for a new invitation.</p><p>For questions about team access, contact your team administrator.</p>`,
|
|
39
41
|
}}
|
|
40
|
-
tenant={{
|
|
41
|
-
logo: undefined,
|
|
42
|
-
name: props.tenant.name,
|
|
43
|
-
}}
|
|
44
42
|
/>
|
|
45
43
|
);
|
|
46
44
|
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import { Text } from '@react-email/text';
|
|
1
2
|
import {
|
|
2
3
|
EMAIL_ACTION_LINK_COMPONENT,
|
|
3
4
|
EMAIL_DATE_COMPONENT,
|
|
4
5
|
EMAIL_LISTING_COMPONENT,
|
|
5
6
|
EMAIL_USER_NAME_COMPONENT,
|
|
6
7
|
} from '../extensions';
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type ActionEmailTemplateProps,
|
|
8
|
+
import type {
|
|
9
|
+
ActionEmailData,
|
|
10
|
+
ActionEmailTemplateProps,
|
|
11
11
|
} from '../components/ActionEmailTemplate';
|
|
12
|
+
import { Button } from '../components/Button';
|
|
13
|
+
import { EmailContainer } from '../components/EmailContainer';
|
|
14
|
+
import { EmailHeading } from '../components/EmailHeading';
|
|
15
|
+
import { parseEmailHtml } from '../components/utils';
|
|
12
16
|
|
|
13
17
|
export const getDefaultOwnerStatementEmailData = (
|
|
14
18
|
mode: 'tag' | 'text',
|
|
@@ -28,19 +32,325 @@ export const getDefaultOwnerStatementEmailData = (
|
|
|
28
32
|
const month = mode === 'tag' ? EMAIL_DATE_COMPONENT : args.month;
|
|
29
33
|
const userName = mode === 'tag' ? EMAIL_USER_NAME_COMPONENT : args.userName;
|
|
30
34
|
|
|
35
|
+
// Owners open the statement by link without a login and viewers log in to
|
|
36
|
+
// the owner portal, so the text names neither. Subject and preview text are
|
|
37
|
+
// plain text without tokens, so a saved template must not keep the editor's
|
|
38
|
+
// sample month and listing.
|
|
31
39
|
return {
|
|
32
|
-
subject:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
subject:
|
|
41
|
+
mode === 'tag'
|
|
42
|
+
? 'Your owner statement is ready'
|
|
43
|
+
: `Your ${args.month} owner statement for ${args.listingName}`,
|
|
44
|
+
shortDescription:
|
|
45
|
+
mode === 'tag'
|
|
46
|
+
? 'Your owner statement is ready to view.'
|
|
47
|
+
: `Your ${args.month} statement for ${args.listingName} is ready to view.`,
|
|
48
|
+
header: 'Your owner statement is ready',
|
|
49
|
+
bodyOne: `<p>Hi ${userName},</p><p>${args.appName} published your ${month} owner statement for ${listingName}. Open it with the button below.</p>`,
|
|
50
|
+
buttonText: 'View statement',
|
|
51
|
+
bodyTwo: `<p style="color:#737373;font-size:13px">If the button doesn't work, copy this link into your browser: ${ownerStatementHref}</p>`,
|
|
38
52
|
href: args.ownerStatementHref,
|
|
39
53
|
};
|
|
40
54
|
};
|
|
41
55
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Subject and text of the emails about an owner payment, which a team's saved
|
|
58
|
+
* statement template does not change: the receipt once Stripe has the money,
|
|
59
|
+
* and the failed-payment email.
|
|
60
|
+
*/
|
|
61
|
+
export const getOwnerPaymentEmailData = (
|
|
62
|
+
kind: 'received' | 'failed',
|
|
63
|
+
args: {
|
|
64
|
+
appName: string;
|
|
65
|
+
ownerStatementHref: string;
|
|
66
|
+
listingName: string;
|
|
67
|
+
userName: string;
|
|
68
|
+
month: string;
|
|
69
|
+
}
|
|
70
|
+
): ActionEmailData => ({
|
|
71
|
+
subject:
|
|
72
|
+
kind === 'received'
|
|
73
|
+
? `Payment received for your ${args.month} statement for ${args.listingName}`
|
|
74
|
+
: `Your payment for the ${args.month} statement for ${args.listingName} failed`,
|
|
75
|
+
shortDescription:
|
|
76
|
+
kind === 'received'
|
|
77
|
+
? `${args.appName} received your payment.`
|
|
78
|
+
: 'Your bank did not complete your payment.',
|
|
79
|
+
header: kind === 'received' ? 'Payment received' : 'Your payment failed',
|
|
80
|
+
bodyOne:
|
|
81
|
+
kind === 'received'
|
|
82
|
+
? `<p>Hi ${args.userName},</p><p>${args.appName} received your payment for your ${args.month} owner statement for ${args.listingName}. Thank you.</p>`
|
|
83
|
+
: `<p>Hi ${args.userName},</p><p>Your bank did not complete your payment for your ${args.month} owner statement for ${args.listingName}. Pay again with the button below.</p>`,
|
|
84
|
+
buttonText: 'View statement',
|
|
85
|
+
bodyTwo: `<p style="color:#737373;font-size:13px">If the button doesn't work, copy this link into your browser: ${args.ownerStatementHref}</p>`,
|
|
86
|
+
href: args.ownerStatementHref,
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
const mutedColor = '#737373';
|
|
90
|
+
const borderColor = '#e5e7eb';
|
|
91
|
+
const paymentColors = {
|
|
92
|
+
due: { background: '#fef2f2', border: '#fecaca', text: '#991b1b' },
|
|
93
|
+
failed: { background: '#fef2f2', border: '#fecaca', text: '#991b1b' },
|
|
94
|
+
received: { background: '#f0fdf4', border: '#bbf7d0', text: '#166534' },
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export const OwnerStatementEmailTemplate = ({
|
|
98
|
+
data,
|
|
99
|
+
tenant,
|
|
100
|
+
themeColors,
|
|
101
|
+
mode,
|
|
102
|
+
user,
|
|
103
|
+
listing,
|
|
104
|
+
month,
|
|
105
|
+
unsubscribeHref,
|
|
106
|
+
renewHref,
|
|
107
|
+
payment,
|
|
108
|
+
yearEnd,
|
|
109
|
+
}: ActionEmailTemplateProps & {
|
|
110
|
+
/** Requests a new no-login link once the emailed one has expired. */
|
|
111
|
+
renewHref?: string;
|
|
112
|
+
/**
|
|
113
|
+
* A year-end statement: its eyebrow, the Fiscal year (`month`) and Listings
|
|
114
|
+
* rows, and the link opening only the year-end statement.
|
|
115
|
+
*/
|
|
116
|
+
yearEnd?: { listings?: string };
|
|
117
|
+
/**
|
|
118
|
+
* The owner payment block: what is due with the pay button, a payment
|
|
119
|
+
* received, or a payment that failed.
|
|
120
|
+
*/
|
|
121
|
+
payment?: {
|
|
122
|
+
kind: 'due' | 'received' | 'failed';
|
|
123
|
+
/** Formatted amount, such as `$1,284.50`. */
|
|
124
|
+
amount: string;
|
|
125
|
+
/** Short lines under the amount, such as `Please pay by Oct 16, 2026`. */
|
|
126
|
+
details: string[];
|
|
127
|
+
/** Opens the payment page. */
|
|
128
|
+
payHref?: string;
|
|
129
|
+
};
|
|
130
|
+
}) => {
|
|
131
|
+
const parse = (html: string) =>
|
|
132
|
+
parseEmailHtml(html, {
|
|
133
|
+
href: data.href,
|
|
134
|
+
userName: user.firstName || '',
|
|
135
|
+
date: month || '',
|
|
136
|
+
listingName: listing || '',
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
return (
|
|
140
|
+
<EmailContainer
|
|
141
|
+
title={data.subject}
|
|
142
|
+
shortDescription={data.shortDescription}
|
|
143
|
+
tenant={tenant}
|
|
144
|
+
mode={mode}
|
|
145
|
+
unsubscribeHref={unsubscribeHref}
|
|
146
|
+
>
|
|
147
|
+
<EmailHeading
|
|
148
|
+
eyebrow={yearEnd ? 'Year-end statement' : 'Owner statement'}
|
|
149
|
+
themeColors={themeColors}
|
|
150
|
+
>
|
|
151
|
+
{data.header?.trim() || 'Your owner statement is ready'}
|
|
152
|
+
</EmailHeading>
|
|
153
|
+
|
|
154
|
+
{data.banner?.trim() && (
|
|
155
|
+
<Text
|
|
156
|
+
style={{
|
|
157
|
+
padding: '16px 20px',
|
|
158
|
+
backgroundColor: '#f8f9fa',
|
|
159
|
+
borderLeft: `3px solid ${themeColors[8]}`,
|
|
160
|
+
borderRadius: '4px',
|
|
161
|
+
margin: '0 0 32px',
|
|
162
|
+
whiteSpace: 'pre-line',
|
|
163
|
+
}}
|
|
164
|
+
>
|
|
165
|
+
{data.banner.trim()}
|
|
166
|
+
</Text>
|
|
167
|
+
)}
|
|
168
|
+
|
|
169
|
+
<div
|
|
170
|
+
// biome-ignore lint/security/noDangerouslySetInnerHtml: values are escaped by parseEmailHtml
|
|
171
|
+
dangerouslySetInnerHTML={{ __html: parse(data.bodyOne) }}
|
|
172
|
+
/>
|
|
173
|
+
|
|
174
|
+
{(listing || month || yearEnd?.listings) && (
|
|
175
|
+
<table
|
|
176
|
+
role="presentation"
|
|
177
|
+
cellPadding={0}
|
|
178
|
+
cellSpacing={0}
|
|
179
|
+
width="100%"
|
|
180
|
+
style={{
|
|
181
|
+
border: `1px solid ${borderColor}`,
|
|
182
|
+
borderRadius: '8px',
|
|
183
|
+
borderCollapse: 'separate',
|
|
184
|
+
margin: '24px 0 0',
|
|
185
|
+
}}
|
|
186
|
+
>
|
|
187
|
+
<tbody>
|
|
188
|
+
{(yearEnd
|
|
189
|
+
? [
|
|
190
|
+
['Fiscal year', month],
|
|
191
|
+
['Listings', yearEnd.listings],
|
|
192
|
+
]
|
|
193
|
+
: [
|
|
194
|
+
['Property', listing],
|
|
195
|
+
['Statement', month],
|
|
196
|
+
]
|
|
197
|
+
).map(([label, value], index) =>
|
|
198
|
+
value ? (
|
|
199
|
+
<tr key={label}>
|
|
200
|
+
<td
|
|
201
|
+
style={{
|
|
202
|
+
padding: '14px 20px',
|
|
203
|
+
color: mutedColor,
|
|
204
|
+
fontSize: 14,
|
|
205
|
+
borderTop: index ? `1px solid ${borderColor}` : 'none',
|
|
206
|
+
}}
|
|
207
|
+
>
|
|
208
|
+
{label}
|
|
209
|
+
</td>
|
|
210
|
+
<td
|
|
211
|
+
style={{
|
|
212
|
+
padding: '14px 20px',
|
|
213
|
+
fontSize: 14,
|
|
214
|
+
fontWeight: 600,
|
|
215
|
+
textAlign: 'right',
|
|
216
|
+
borderTop: index ? `1px solid ${borderColor}` : 'none',
|
|
217
|
+
}}
|
|
218
|
+
>
|
|
219
|
+
{value}
|
|
220
|
+
</td>
|
|
221
|
+
</tr>
|
|
222
|
+
) : null
|
|
223
|
+
)}
|
|
224
|
+
</tbody>
|
|
225
|
+
</table>
|
|
226
|
+
)}
|
|
227
|
+
|
|
228
|
+
{payment && (
|
|
229
|
+
<div
|
|
230
|
+
data-testid="owner-payment-block"
|
|
231
|
+
style={{
|
|
232
|
+
padding: '24px 20px',
|
|
233
|
+
backgroundColor: paymentColors[payment.kind].background,
|
|
234
|
+
border: `1px solid ${paymentColors[payment.kind].border}`,
|
|
235
|
+
borderRadius: '8px',
|
|
236
|
+
margin: '24px 0 0',
|
|
237
|
+
textAlign: 'center',
|
|
238
|
+
}}
|
|
239
|
+
>
|
|
240
|
+
<Text
|
|
241
|
+
style={{
|
|
242
|
+
color: paymentColors[payment.kind].text,
|
|
243
|
+
fontSize: 14,
|
|
244
|
+
fontWeight: 600,
|
|
245
|
+
margin: 0,
|
|
246
|
+
}}
|
|
247
|
+
>
|
|
248
|
+
{payment.kind === 'due'
|
|
249
|
+
? 'Balance due'
|
|
250
|
+
: payment.kind === 'received'
|
|
251
|
+
? 'Payment received'
|
|
252
|
+
: 'Payment failed'}
|
|
253
|
+
</Text>
|
|
254
|
+
<Text
|
|
255
|
+
style={{
|
|
256
|
+
color: paymentColors[payment.kind].text,
|
|
257
|
+
fontSize: 32,
|
|
258
|
+
fontWeight: 700,
|
|
259
|
+
lineHeight: '40px',
|
|
260
|
+
margin: '8px 0',
|
|
261
|
+
}}
|
|
262
|
+
>
|
|
263
|
+
{payment.amount}
|
|
264
|
+
</Text>
|
|
265
|
+
{payment.details.map((detail) => (
|
|
266
|
+
<Text
|
|
267
|
+
key={detail}
|
|
268
|
+
style={{
|
|
269
|
+
color: paymentColors[payment.kind].text,
|
|
270
|
+
fontSize: 14,
|
|
271
|
+
margin: '4px 0 0',
|
|
272
|
+
}}
|
|
273
|
+
>
|
|
274
|
+
{detail}
|
|
275
|
+
</Text>
|
|
276
|
+
))}
|
|
277
|
+
{payment.payHref && (
|
|
278
|
+
<>
|
|
279
|
+
<Button
|
|
280
|
+
href={payment.payHref}
|
|
281
|
+
mode={mode}
|
|
282
|
+
data-testid="pay-owner-balance-button"
|
|
283
|
+
label={
|
|
284
|
+
payment.kind === 'failed'
|
|
285
|
+
? 'Pay again'
|
|
286
|
+
: 'Pay Deficit Balance'
|
|
287
|
+
}
|
|
288
|
+
themeColors={themeColors}
|
|
289
|
+
style={{ marginTop: '20px', marginBottom: '12px' }}
|
|
290
|
+
/>
|
|
291
|
+
<Text style={{ color: mutedColor, fontSize: 12, margin: 0 }}>
|
|
292
|
+
Bank transfer (ACH), secured by Stripe
|
|
293
|
+
</Text>
|
|
294
|
+
</>
|
|
295
|
+
)}
|
|
296
|
+
</div>
|
|
297
|
+
)}
|
|
298
|
+
|
|
299
|
+
<Button
|
|
300
|
+
href={data.href}
|
|
301
|
+
mode={mode}
|
|
302
|
+
data-testid="view-owner-statement-button"
|
|
303
|
+
label={data.buttonText?.trim() || 'View statement'}
|
|
304
|
+
themeColors={themeColors}
|
|
305
|
+
style={{
|
|
306
|
+
marginTop: '24px',
|
|
307
|
+
marginBottom: '32px',
|
|
308
|
+
...(payment?.payHref && {
|
|
309
|
+
background: '#ffffff',
|
|
310
|
+
border: `1px solid ${themeColors[8]}`,
|
|
311
|
+
color: themeColors[8],
|
|
312
|
+
}),
|
|
313
|
+
}}
|
|
314
|
+
/>
|
|
315
|
+
|
|
316
|
+
{renewHref && (
|
|
317
|
+
<div
|
|
318
|
+
style={{
|
|
319
|
+
padding: '20px',
|
|
320
|
+
backgroundColor: '#f8f9fa',
|
|
321
|
+
borderRadius: '8px',
|
|
322
|
+
marginBottom: '32px',
|
|
323
|
+
}}
|
|
324
|
+
>
|
|
325
|
+
<Text style={{ fontWeight: 600, margin: '0 0 4px' }}>
|
|
326
|
+
Link expired?
|
|
327
|
+
</Text>
|
|
328
|
+
<Text style={{ color: mutedColor, fontSize: 14, margin: 0 }}>
|
|
329
|
+
For your security, this link opens only this{' '}
|
|
330
|
+
{yearEnd ? 'year-end statement' : 'statement'} and works for 7 days.
|
|
331
|
+
After that, request a new one and we'll email it to this address.
|
|
332
|
+
</Text>
|
|
333
|
+
<Button
|
|
334
|
+
href={renewHref}
|
|
335
|
+
mode={mode}
|
|
336
|
+
data-testid="renew-owner-statement-link-button"
|
|
337
|
+
label="Send me a new link"
|
|
338
|
+
themeColors={themeColors}
|
|
339
|
+
style={{
|
|
340
|
+
background: '#ffffff',
|
|
341
|
+
border: `1px solid ${themeColors[8]}`,
|
|
342
|
+
color: themeColors[8],
|
|
343
|
+
marginTop: '16px',
|
|
344
|
+
marginBottom: 0,
|
|
345
|
+
}}
|
|
346
|
+
/>
|
|
347
|
+
</div>
|
|
348
|
+
)}
|
|
349
|
+
|
|
350
|
+
<div
|
|
351
|
+
// biome-ignore lint/security/noDangerouslySetInnerHtml: values are escaped by parseEmailHtml
|
|
352
|
+
dangerouslySetInnerHTML={{ __html: parse(data.bodyTwo) }}
|
|
353
|
+
/>
|
|
354
|
+
</EmailContainer>
|
|
355
|
+
);
|
|
46
356
|
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Heading } from '@react-email/heading';
|
|
2
|
+
import { Text } from '@react-email/text';
|
|
3
|
+
import { EmailContainer } from '../components/EmailContainer';
|
|
4
|
+
import type { EmailBaseProps } from '../types';
|
|
5
|
+
|
|
6
|
+
export type SecondFactorResetEmailTemplateProps = {
|
|
7
|
+
mode: EmailBaseProps['mode'];
|
|
8
|
+
tenant: EmailBaseProps['tenant'];
|
|
9
|
+
audience: 'admin' | 'user';
|
|
10
|
+
user: string;
|
|
11
|
+
initiator: 'support' | 'teamAdmin';
|
|
12
|
+
approvedBy: string | null;
|
|
13
|
+
resetAt: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const SecondFactorResetEmailTemplate = ({
|
|
17
|
+
mode,
|
|
18
|
+
tenant,
|
|
19
|
+
audience,
|
|
20
|
+
user,
|
|
21
|
+
initiator,
|
|
22
|
+
approvedBy,
|
|
23
|
+
resetAt,
|
|
24
|
+
}: SecondFactorResetEmailTemplateProps) => {
|
|
25
|
+
const by =
|
|
26
|
+
initiator === 'support'
|
|
27
|
+
? `VRPlatform support${approvedBy ? `, approved by ${approvedBy}` : ''}`
|
|
28
|
+
: (approvedBy ?? 'a team admin');
|
|
29
|
+
return (
|
|
30
|
+
<EmailContainer
|
|
31
|
+
title={
|
|
32
|
+
audience === 'admin'
|
|
33
|
+
? `Two-step verification reset for ${user}`
|
|
34
|
+
: 'Your two-step verification was reset'
|
|
35
|
+
}
|
|
36
|
+
shortDescription={`Two-step verification was reset on ${tenant.name}.`}
|
|
37
|
+
tenant={tenant}
|
|
38
|
+
mode={mode}
|
|
39
|
+
>
|
|
40
|
+
<Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>
|
|
41
|
+
{audience === 'admin'
|
|
42
|
+
? `Two-step verification reset for ${user}`
|
|
43
|
+
: 'Your two-step verification was reset'}
|
|
44
|
+
</Heading>
|
|
45
|
+
{audience === 'admin' ? (
|
|
46
|
+
<>
|
|
47
|
+
<Text>
|
|
48
|
+
The authenticator app and the backup codes of <b>{user}</b> were
|
|
49
|
+
removed on {resetAt} by {by}. {user} is signed out everywhere and
|
|
50
|
+
sets up two-step verification again at the next sign-in.
|
|
51
|
+
</Text>
|
|
52
|
+
<Text>
|
|
53
|
+
If you did not expect this reset, contact VRPlatform support right
|
|
54
|
+
away.
|
|
55
|
+
</Text>
|
|
56
|
+
</>
|
|
57
|
+
) : (
|
|
58
|
+
<>
|
|
59
|
+
<Text>
|
|
60
|
+
Your authenticator app and your backup codes for {tenant.name} were
|
|
61
|
+
removed on {resetAt} by {by}. You are signed out everywhere.
|
|
62
|
+
</Text>
|
|
63
|
+
<Text>
|
|
64
|
+
Sign in again and set up two-step verification. If you did not ask
|
|
65
|
+
for this reset, contact VRPlatform support right away.
|
|
66
|
+
</Text>
|
|
67
|
+
</>
|
|
68
|
+
)}
|
|
69
|
+
</EmailContainer>
|
|
70
|
+
);
|
|
71
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Heading } from '@react-email/heading';
|
|
2
|
+
import { Text } from '@react-email/text';
|
|
3
|
+
import { EmailContainer } from '../components';
|
|
4
|
+
import type { EmailBaseProps } from '../types';
|
|
5
|
+
|
|
6
|
+
// PRO-20639: the written confirmation the IRS requires when an owner
|
|
7
|
+
// withdraws consent to get 1099s by email. Fixed text; teams can't edit it.
|
|
8
|
+
export const Tax1099ConsentWithdrawnEmailTemplate = ({
|
|
9
|
+
mode,
|
|
10
|
+
user,
|
|
11
|
+
tenant,
|
|
12
|
+
withdrawnAt,
|
|
13
|
+
address,
|
|
14
|
+
}: {
|
|
15
|
+
mode: EmailBaseProps['mode'];
|
|
16
|
+
user: EmailBaseProps['user'];
|
|
17
|
+
tenant: EmailBaseProps['tenant'];
|
|
18
|
+
/** When the owner withdrew; the withdrawal takes effect that day. */
|
|
19
|
+
withdrawnAt: string;
|
|
20
|
+
address: string | null;
|
|
21
|
+
}) => {
|
|
22
|
+
// The team stores no time zone. Pacific time keeps an evening withdrawal
|
|
23
|
+
// anywhere in the mainland US on the day the owner made it.
|
|
24
|
+
const effectiveOn = new Intl.DateTimeFormat('en-US', {
|
|
25
|
+
timeZone: 'America/Los_Angeles',
|
|
26
|
+
month: 'long',
|
|
27
|
+
day: 'numeric',
|
|
28
|
+
year: 'numeric',
|
|
29
|
+
}).format(new Date(withdrawnAt));
|
|
30
|
+
return (
|
|
31
|
+
<EmailContainer
|
|
32
|
+
title="You withdrew your consent to get 1099s by email"
|
|
33
|
+
shortDescription={`From ${effectiveOn}, ${tenant.name} mails your 1099s.`}
|
|
34
|
+
tenant={tenant}
|
|
35
|
+
mode={mode}
|
|
36
|
+
>
|
|
37
|
+
<Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>
|
|
38
|
+
{user.firstName ? `Hi ${user.firstName},` : 'Hi there,'}
|
|
39
|
+
</Heading>
|
|
40
|
+
<Text>
|
|
41
|
+
You withdrew your consent to get your 1099s from <b>{tenant.name}</b> by
|
|
42
|
+
email only. The withdrawal takes effect on <b>{effectiveOn}</b>.
|
|
43
|
+
</Text>
|
|
44
|
+
<Text>
|
|
45
|
+
From that date, {tenant.name} mails your 1099s to{' '}
|
|
46
|
+
{address || 'the address on Tax info in your owner portal'}, with a copy
|
|
47
|
+
by email. Each 1099 also stays in Tax Statements in your owner portal.
|
|
48
|
+
</Text>
|
|
49
|
+
<Text>
|
|
50
|
+
To get your 1099s by email only again, give your consent on Tax info in
|
|
51
|
+
your owner portal. If you did not make this change, contact{' '}
|
|
52
|
+
{tenant.name} right away.
|
|
53
|
+
</Text>
|
|
54
|
+
</EmailContainer>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EMAIL_ACTION_LINK_COMPONENT,
|
|
3
|
+
EMAIL_DATE_COMPONENT,
|
|
4
|
+
EMAIL_USER_NAME_COMPONENT,
|
|
5
|
+
} from '../extensions';
|
|
6
|
+
import {
|
|
7
|
+
type ActionEmailData,
|
|
8
|
+
ActionEmailTemplate,
|
|
9
|
+
type ActionEmailTemplateProps,
|
|
10
|
+
} from '../components';
|
|
11
|
+
|
|
12
|
+
type Tax1099EmailType =
|
|
13
|
+
| 'taxInfoRequest'
|
|
14
|
+
| 'emailDeliveryRequest'
|
|
15
|
+
| 'tax1099Ready'
|
|
16
|
+
| 'tax1099Corrected';
|
|
17
|
+
|
|
18
|
+
// PRO-20621: the 1099 owner emails teams edit in Settings > Emails. The date
|
|
19
|
+
// token renders the tax year. Subject and preview text are plain text without
|
|
20
|
+
// tokens, so they name no year.
|
|
21
|
+
export const getDefaultTax1099EmailData = (
|
|
22
|
+
type: Tax1099EmailType,
|
|
23
|
+
mode: 'tag' | 'text',
|
|
24
|
+
args: {
|
|
25
|
+
teamName: string;
|
|
26
|
+
href: string;
|
|
27
|
+
userName: string;
|
|
28
|
+
taxYear: string;
|
|
29
|
+
}
|
|
30
|
+
): ActionEmailData => {
|
|
31
|
+
const href = mode === 'tag' ? EMAIL_ACTION_LINK_COMPONENT : args.href;
|
|
32
|
+
const userName = mode === 'tag' ? EMAIL_USER_NAME_COMPONENT : args.userName;
|
|
33
|
+
const taxYear = mode === 'tag' ? EMAIL_DATE_COMPONENT : args.taxYear;
|
|
34
|
+
const team = args.teamName;
|
|
35
|
+
const linkLine = `<p style="color:#737373;font-size:13px">If the button doesn't work, copy this link into your browser: ${href}</p>`;
|
|
36
|
+
|
|
37
|
+
if (type === 'taxInfoRequest')
|
|
38
|
+
return {
|
|
39
|
+
subject: `${team} needs your tax info`,
|
|
40
|
+
shortDescription: `Add your tax ID in your owner portal so ${team} can send your 1099.`,
|
|
41
|
+
header: 'Complete your tax info',
|
|
42
|
+
bodyOne: `<p>Hi ${userName},</p><p>${team} needs your tax ID to send your ${taxYear} 1099. Add it on Tax info in your owner portal.</p>`,
|
|
43
|
+
buttonText: 'Complete tax info',
|
|
44
|
+
bodyTwo: `<p>Never send your tax ID by email. If you did not expect this request, contact ${team} before you enter it.</p>${linkLine}`,
|
|
45
|
+
href: args.href,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
if (type === 'emailDeliveryRequest')
|
|
49
|
+
return {
|
|
50
|
+
subject: `Get your 1099s from ${team} by email`,
|
|
51
|
+
shortDescription:
|
|
52
|
+
'Confirm in your owner portal that you want your 1099s by email only.',
|
|
53
|
+
header: 'Get your 1099s by email',
|
|
54
|
+
bodyOne: `<p>Hi ${userName},</p><p>${team} asks whether you want your 1099s by email only, without a paper copy by mail. You then get an email when your 1099 is ready, and it stays in Tax Statements in your owner portal.</p><p>Nothing changes until you confirm on Tax info.</p>`,
|
|
55
|
+
buttonText: 'Choose 1099 delivery',
|
|
56
|
+
bodyTwo: linkLine,
|
|
57
|
+
href: args.href,
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
if (type === 'tax1099Ready')
|
|
61
|
+
return {
|
|
62
|
+
subject: `Your 1099 from ${team} is ready`,
|
|
63
|
+
shortDescription: 'Open it in Tax Statements in your owner portal.',
|
|
64
|
+
header: 'Your 1099 is ready',
|
|
65
|
+
bodyOne: `<p>Hi ${userName},</p><p>Your ${taxYear} 1099 from ${team} is in Tax Statements in your owner portal. You can download and print it there.</p>`,
|
|
66
|
+
buttonText: 'Open Tax Statements',
|
|
67
|
+
bodyTwo: `<p>If you get your 1099 by mail too, the paper copy is on its way.</p>${linkLine}`,
|
|
68
|
+
href: args.href,
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
subject: `Your corrected 1099 from ${team}`,
|
|
73
|
+
shortDescription: 'Open it in Tax Statements in your owner portal.',
|
|
74
|
+
header: 'Your 1099 was corrected',
|
|
75
|
+
bodyOne: `<p>Hi ${userName},</p><p>${team} filed a corrected ${taxYear} 1099 for you. It replaces the earlier one and is in Tax Statements in your owner portal.</p>`,
|
|
76
|
+
buttonText: 'Open Tax Statements',
|
|
77
|
+
bodyTwo: `<p>If you get your 1099 by mail too, the corrected paper copy is on its way.</p>${linkLine}`,
|
|
78
|
+
href: args.href,
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export const Tax1099EmailTemplate = ({
|
|
83
|
+
type,
|
|
84
|
+
taxYear,
|
|
85
|
+
...props
|
|
86
|
+
}: Omit<ActionEmailTemplateProps, 'listing' | 'month'> & {
|
|
87
|
+
type: Tax1099EmailType;
|
|
88
|
+
taxYear: string;
|
|
89
|
+
}) => (
|
|
90
|
+
<ActionEmailTemplate
|
|
91
|
+
{...props}
|
|
92
|
+
listing={undefined}
|
|
93
|
+
month={taxYear}
|
|
94
|
+
eyebrow={
|
|
95
|
+
type === 'taxInfoRequest' || type === 'emailDeliveryRequest'
|
|
96
|
+
? 'Tax info'
|
|
97
|
+
: 'Tax statements'
|
|
98
|
+
}
|
|
99
|
+
/>
|
|
100
|
+
);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Heading } from '@react-email/heading';
|
|
2
|
+
import { Text } from '@react-email/text';
|
|
3
|
+
import { Button } from '../components/Button';
|
|
4
|
+
import { EmailContainer } from '../components/EmailContainer';
|
|
5
|
+
import { THEME_COLORS } from '../theme';
|
|
6
|
+
import type { EmailBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
export type TeamApiTokenCreatedEmailTemplateProps = {
|
|
9
|
+
mode: EmailBaseProps['mode'];
|
|
10
|
+
tenant: EmailBaseProps['tenant'];
|
|
11
|
+
hint: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
createdBy: string | null;
|
|
14
|
+
href: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const TeamApiTokenCreatedEmailTemplate = ({
|
|
18
|
+
mode,
|
|
19
|
+
tenant,
|
|
20
|
+
hint,
|
|
21
|
+
createdAt,
|
|
22
|
+
createdBy,
|
|
23
|
+
href,
|
|
24
|
+
}: TeamApiTokenCreatedEmailTemplateProps) => (
|
|
25
|
+
<EmailContainer
|
|
26
|
+
title={`New API key on ${tenant.name}`}
|
|
27
|
+
shortDescription={`An API key ending in ${hint} was created on ${tenant.name}.`}
|
|
28
|
+
tenant={tenant}
|
|
29
|
+
mode={mode}
|
|
30
|
+
>
|
|
31
|
+
<Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>
|
|
32
|
+
New API key on your team
|
|
33
|
+
</Heading>
|
|
34
|
+
<Text>
|
|
35
|
+
An API key ending in <b>{hint}</b> was created on {tenant.name} on{' '}
|
|
36
|
+
{createdAt}
|
|
37
|
+
{createdBy ? ` by ${createdBy}` : ''}. Anyone holding it can read and
|
|
38
|
+
change your team's data.
|
|
39
|
+
</Text>
|
|
40
|
+
<Text>
|
|
41
|
+
If you did not expect this key, revoke it and review the team members.
|
|
42
|
+
</Text>
|
|
43
|
+
<Button
|
|
44
|
+
href={href}
|
|
45
|
+
mode={mode}
|
|
46
|
+
label="Review API keys"
|
|
47
|
+
themeColors={THEME_COLORS.vrplatform!}
|
|
48
|
+
/>
|
|
49
|
+
</EmailContainer>
|
|
50
|
+
);
|