* applied whitelabel to additional parts of the app * format .md files * updated metadata of all apps * applied whitelabel to PoweredByCal.tsx * fixed `team_upgrade_banner_action` with better german * fixed import of APP_NAME in email templates * revert "applied whitelabel" in CalEventParser.test.ts * Revert "updated metadata of all apps" This reverts commit 9c1621788d2c4c4a4e4a545f48898d4af7a39f33. * revert app-store whitelabel changes * Revert "applied whitelabel to PoweredByCal.tsx" This reverts commit f2b2d79aa51cca3a70af6bf649b24e22f2fca73a. * Update website * Sync * Update constants.ts * Prevent unit test error Co-authored-by: René Müller <rene.mueller@clicksports.de> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: zomars <zomars@me.com>
JSX email templates
componentsHolds reusable patternstemplatesA template equals a type of email sent
Usage
import { renderEmail } from "@calcom/emails";
renderEmail("TeamInviteEmail", */{
language: t,
from: "teampro@example.com",
to: "pro@example.com",
teamName: "Team Pro",
joinLink: "https://cal.com",
});
The first argument is the template name as defined inside templates/index.ts. The second argument are the template props.
Development
You can use an API endpoint to preview the email HTML, there's already one on /apps/web/pages/api/email.ts feel free to change the template to the one you're currently working on.