Skip to content

Commit

Permalink
Merge pull request #51 from marmelab/fix/update-email
Browse files Browse the repository at this point in the history
Feat(crm): Update mail templates
  • Loading branch information
arimet authored Aug 9, 2024
2 parents 4576300 + 1f5bac7 commit 22b4ebf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 36 deletions.
14 changes: 13 additions & 1 deletion src/root/CRM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,18 @@ export const CRM = ({
</ConfigurationProvider>
);

export const raSupabaseEnglishMessagesOverride = {
'ra-supabase': {
auth: {
password_reset: 'Check your emails for a Reset Password message.',
},
},
};

const i18nProvider = polyglotI18nProvider(() => {
return mergeTranslations(englishMessages, raSupabaseEnglishMessages);
return mergeTranslations(
englishMessages,
raSupabaseEnglishMessages,
raSupabaseEnglishMessagesOverride
);
}, 'en');
19 changes: 2 additions & 17 deletions supabase/templates/invite.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@
text-decoration: none;
border-radius: 5px;
}
.footer {
text-align: center;
padding: 10px 0;
font-size: 12px;
color: #777777;
}
</style>
</head>
<body>
Expand All @@ -60,7 +54,7 @@ <h2>Confirm your account</h2>
<div class="content">
<p>Welcome to Atomic CRM.</p>
<p>
You've been invited to join the (Name) organization. Confirm
You've been invited to join the CRM organization. Confirm
your address below:
</p>
<a
Expand All @@ -74,16 +68,7 @@ <h2>Confirm your account</h2>
this may be a fraudulent attempt.
</p>
<p>See you soon!</p>
<p>The Atomic CRM team</p>
</div>
<div class="footer">
<p>
If the activation link doesn’t work,
<a
href="mailto:support@react-admin-enterprise-edition.zendesk.com"
>contact us</a
>.
</p>
<p>Atomic CRM team</p>
</div>
</div>
</body>
Expand Down
20 changes: 2 additions & 18 deletions supabase/templates/recovery.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,12 @@
text-decoration: none;
border-radius: 5px;
}
.footer {
text-align: center;
padding: 10px 0;
font-size: 12px;
color: #777777;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h2>Reset Password</h2>
<h2>Reset your password</h2>
</div>
<div class="content">
<p>Hello,</p>
Expand All @@ -70,17 +64,7 @@ <h2>Reset Password</h2>
not originate from you, please contact us immediately as
this may be a fraudulent attempt.
</p>
<p>Keep up the great work!</p>
<p>The Atomic CRM team</p>
</div>
<div class="footer">
<p>
If you need help, feel free to
<a
href="mailto:support@react-admin-enterprise-edition.zendesk.com"
>contact us</a
>.
</p>
<p>Atomic CRM</p>
</div>
</div>
</body>
Expand Down

0 comments on commit 22b4ebf

Please sign in to comment.