2
0

✏️ (pricing) Fix typos

This commit is contained in:
Baptiste Arnaud
2022-09-27 08:22:40 +02:00
committed by Baptiste Arnaud
parent 3bec24a8cc
commit 9061c03d6d
4 changed files with 42 additions and 14 deletions

View File

@ -70,6 +70,7 @@ export const UsageContent = ({ workspace }: Props) => {
(resets on 1st of every month)
</Text>
</HStack>
<HStack>
<Skeleton
fontWeight="bold"
@ -78,7 +79,12 @@ export const UsageContent = ({ workspace }: Props) => {
>
{parseNumberWithCommas(totalChatsUsed)}
</Skeleton>
<Text>/ {parseNumberWithCommas(workspaceChatsLimit)}</Text>
<Text>
/{' '}
{workspaceChatsLimit === -1
? 'Unlimited'
: parseNumberWithCommas(workspaceChatsLimit)}
</Text>
</HStack>
</Flex>

View File

@ -3,7 +3,13 @@ import { Plan } from 'db'
export const PlanTag = ({ plan, ...props }: { plan?: Plan } & TagProps) => {
switch (plan) {
case Plan.LIFETIME:
case Plan.LIFETIME: {
return (
<Tag colorScheme="purple" data-testid="lifetime-plan-tag" {...props}>
Lifetime
</Tag>
)
}
case Plan.PRO: {
return (
<Tag colorScheme="blue" data-testid="pro-plan-tag" {...props}>

View File

@ -158,15 +158,15 @@ The related environment variables are listed here but you are probably not inter
<details><summary><h4>Stripe</h4></summary>
<p>
| Parameter | Default | Description |
| ----------------------------- | ------- | ---------------------- |
| NEXT_PUBLIC_STRIPE_PUBLIC_KEY | -- | Stripe public key |
| STRIPE_SECRET_KEY | -- | Stripe secret key |
| STRIPE_PRICE_USD_ID | -- | Pro plan USD price id |
| STRIPE_PRICE_EUR_ID | -- | Pro plan EUR price id |
| STRIPE_PRICE_TEAM_USD_ID | -- | Team plan USD price id |
| STRIPE_PRICE_TEAM_EUR_ID | -- | Team plan EUR price id |
| STRIPE_WEBHOOK_SECRET | -- | Stripe Webhook secret |
| Parameter | Default | Description |
| ---------------------------------- | ------- | --------------------------- |
| NEXT_PUBLIC_STRIPE_PUBLIC_KEY | -- | Stripe public key |
| STRIPE_SECRET_KEY | -- | Stripe secret key |
| STRIPE_PRO_PRICE_ID | -- | Pro plan price id |
| STRIPE_STARTER_PRICE_ID | -- | Starter plan price id |
| STRIPE_ADDITIONAL_CHATS_PRICE_ID | -- | Additional chats price id |
| STRIPE_ADDITIONAL_STORAGE_PRICE_ID | -- | Additional storage price id |
| STRIPE_WEBHOOK_SECRET | -- | Stripe Webhook secret |
</p></details>

View File

@ -107,7 +107,23 @@ const Pricing = () => {
name: 'Personal',
features: [
'Unlimited typebots',
'300 chats included',
<>
<Text>
<chakra.span fontWeight="bold">300 chats</chakra.span>{' '}
included
</Text>
&nbsp;
<Tooltip
hasArrow
placement="top"
label="A chat is counted whenever a user starts a discussion. It is
independant of the number of messages he sends and receives."
>
<chakra.span cursor="pointer" h="7">
<HelpCircleIcon />
</chakra.span>
</Tooltip>
</>,
'Native integrations',
'Webhooks',
'Custom Javascript & CSS',
@ -151,7 +167,7 @@ const Pricing = () => {
</>,
<>
<Text>
<chakra.span fontWeight="bold">2 GB chats</chakra.span>{' '}
<chakra.span fontWeight="bold">2 GB</chakra.span>{' '}
included
</Text>
&nbsp;
@ -214,7 +230,7 @@ const Pricing = () => {
</>,
<>
<Text>
<chakra.span fontWeight="bold">10 GB chats</chakra.span>{' '}
<chakra.span fontWeight="bold">10 GB</chakra.span>{' '}
included
</Text>
&nbsp;