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

View File

@ -3,7 +3,13 @@ import { Plan } from 'db'
export const PlanTag = ({ plan, ...props }: { plan?: Plan } & TagProps) => { export const PlanTag = ({ plan, ...props }: { plan?: Plan } & TagProps) => {
switch (plan) { switch (plan) {
case Plan.LIFETIME: case Plan.LIFETIME: {
return (
<Tag colorScheme="purple" data-testid="lifetime-plan-tag" {...props}>
Lifetime
</Tag>
)
}
case Plan.PRO: { case Plan.PRO: {
return ( return (
<Tag colorScheme="blue" data-testid="pro-plan-tag" {...props}> <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> <details><summary><h4>Stripe</h4></summary>
<p> <p>
| Parameter | Default | Description | | Parameter | Default | Description |
| ----------------------------- | ------- | ---------------------- | | ---------------------------------- | ------- | --------------------------- |
| NEXT_PUBLIC_STRIPE_PUBLIC_KEY | -- | Stripe public key | | NEXT_PUBLIC_STRIPE_PUBLIC_KEY | -- | Stripe public key |
| STRIPE_SECRET_KEY | -- | Stripe secret key | | STRIPE_SECRET_KEY | -- | Stripe secret key |
| STRIPE_PRICE_USD_ID | -- | Pro plan USD price id | | STRIPE_PRO_PRICE_ID | -- | Pro plan price id |
| STRIPE_PRICE_EUR_ID | -- | Pro plan EUR price id | | STRIPE_STARTER_PRICE_ID | -- | Starter plan price id |
| STRIPE_PRICE_TEAM_USD_ID | -- | Team plan USD price id | | STRIPE_ADDITIONAL_CHATS_PRICE_ID | -- | Additional chats price id |
| STRIPE_PRICE_TEAM_EUR_ID | -- | Team plan EUR price id | | STRIPE_ADDITIONAL_STORAGE_PRICE_ID | -- | Additional storage price id |
| STRIPE_WEBHOOK_SECRET | -- | Stripe Webhook secret | | STRIPE_WEBHOOK_SECRET | -- | Stripe Webhook secret |
</p></details> </p></details>

View File

@ -107,7 +107,23 @@ const Pricing = () => {
name: 'Personal', name: 'Personal',
features: [ features: [
'Unlimited typebots', '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', 'Native integrations',
'Webhooks', 'Webhooks',
'Custom Javascript & CSS', 'Custom Javascript & CSS',
@ -151,7 +167,7 @@ const Pricing = () => {
</>, </>,
<> <>
<Text> <Text>
<chakra.span fontWeight="bold">2 GB chats</chakra.span>{' '} <chakra.span fontWeight="bold">2 GB</chakra.span>{' '}
included included
</Text> </Text>
&nbsp; &nbsp;
@ -214,7 +230,7 @@ const Pricing = () => {
</>, </>,
<> <>
<Text> <Text>
<chakra.span fontWeight="bold">10 GB chats</chakra.span>{' '} <chakra.span fontWeight="bold">10 GB</chakra.span>{' '}
included included
</Text> </Text>
&nbsp; &nbsp;