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}>