2
0

💚 Fix send email in CI "React is not defined"

This commit is contained in:
Baptiste Arnaud
2023-10-17 14:39:10 +02:00
parent 885dcecd8d
commit 3e06d89873
3 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
import { ComponentProps } from 'react'
import React, { ComponentProps } from 'react'
import { Mjml, MjmlBody, MjmlSection, MjmlColumn } from '@faire/mjml-react'
import { render } from '@faire/mjml-react/utils/render'
import { Head, HeroImage, Text } from '../components'
@ -47,14 +47,15 @@ export const AlmostReachedChatsLimitEmail = ({
</Text>
<Text>
Your progress can be monitored on your workspace dashboard
settings. Check out the{' '}
settings.
</Text>
<Text>
Check out the{' '}
<a href="https://typebot.io/pricing">pricing page</a> for
information about the pay as you go tiers.
</Text>
<Text>
As a reminder, your billing cycle ends on {readableResetDate}. If
you&apos;d like to learn more about the Enterprise plan for an
annual commitment, reach out to support@typebot.io.
As a reminder, your billing cycle ends on {readableResetDate}.
</Text>
</MjmlColumn>
</MjmlSection>

View File

@ -45,8 +45,8 @@ const createHtmlFile = () => {
render(
<AlmostReachedChatsLimitEmail
usagePercent={86}
url={'https://app.typebot.io'}
chatsLimit={2000}
workspaceName="My Workspace"
/>
).html
)

View File

@ -5,7 +5,7 @@
"license": "AGPL-3.0-or-later",
"private": true,
"scripts": {
"playground": "tsx playground.ts",
"playground": "SKIP_ENV_CHECK=true dotenv -e ./.env.local -- tsx playground.ts",
"db:cleanDatabase": "tsx cleanDatabase.ts",
"db:backup": "tsx backupDatabase.ts",
"db:restore": "tsx restoreDatabase.ts",