Skip to content

Commit bae5b84

Browse files
committed
lint
1 parent 84d7196 commit bae5b84

2 files changed

Lines changed: 62 additions & 31 deletions

File tree

emails/pricing.tsx

Lines changed: 61 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,68 @@
1-
import { Html, Head, Preview, Body, Container, Section, Text, Button, Hr, Tailwind } from "@react-email/components";
2-
import { createIntl } from "react-intl";
1+
import {
2+
Body,
3+
Button,
4+
Container,
5+
Head,
6+
Hr,
7+
Html,
8+
Preview,
9+
Section,
10+
Tailwind,
11+
Text,
12+
} from '@react-email/components';
13+
import { createIntl } from 'react-intl';
314

415
interface PricingProps {
516
locale: 'pt' | 'en';
617
}
718

819
const enMessages = {
9-
'Exclusive Offer Just For You: Unlock Premium Features at $12/month': 'Exclusive Offer Just For You: Unlock Premium Features at $12/month',
20+
'Exclusive Offer Just For You: Unlock Premium Features at $12/month':
21+
'Exclusive Offer Just For You: Unlock Premium Features at $12/month',
1022
'Exclusive Offer': 'Exclusive Offer',
1123
'/ month': '/ month',
12-
'We\'ve handcrafted the perfect plan tailored specifically for your needs. Unlock premium features at an unbeatable value.': 'We\'ve handcrafted the perfect plan tailored specifically for your needs. Unlock premium features at an unbeatable value.',
24+
"We've handcrafted the perfect plan tailored specifically for your needs. Unlock premium features at an unbeatable value.":
25+
"We've handcrafted the perfect plan tailored specifically for your needs. Unlock premium features at an unbeatable value.",
1326
'Manage up to 25 premium products': 'Manage up to 25 premium products',
14-
'Grow your audience with 10,000 subscribers': 'Grow your audience with 10,000 subscribers',
15-
'Make data-driven decisions with advanced analytics': 'Make data-driven decisions with advanced analytics',
16-
'Priority support with 24-hour response time': 'Priority support with 24-hour response time',
17-
'Seamless integration with your favorite tools': 'Seamless integration with your favorite tools',
27+
'Grow your audience with 10,000 subscribers':
28+
'Grow your audience with 10,000 subscribers',
29+
'Make data-driven decisions with advanced analytics':
30+
'Make data-driven decisions with advanced analytics',
31+
'Priority support with 24-hour response time':
32+
'Priority support with 24-hour response time',
33+
'Seamless integration with your favorite tools':
34+
'Seamless integration with your favorite tools',
1835
'Claim Your Special Offer': 'Claim Your Special Offer',
19-
'Limited time offer - Upgrade now and save 20%': 'Limited time offer - Upgrade now and save 20%',
20-
'No credit card required. 14-day free trial available.': 'No credit card required. 14-day free trial available.',
21-
}
36+
'Limited time offer - Upgrade now and save 20%':
37+
'Limited time offer - Upgrade now and save 20%',
38+
'No credit card required. 14-day free trial available.':
39+
'No credit card required. 14-day free trial available.',
40+
};
2241

2342
const ptMessages = {
24-
'Exclusive Offer Just For You: Unlock Premium Features at $12/month': 'Oferta Exclusiva Só Para Você: Desbloqueie Funcionalidades com $12/mês',
43+
'Exclusive Offer Just For You: Unlock Premium Features at $12/month':
44+
'Oferta Exclusiva Só Para Você: Desbloqueie Funcionalidades com $12/mês',
2545
'Exclusive Offer': 'Oferta Exclusiva',
2646
'/ month': '/ mês',
27-
'We\'ve handcrafted the perfect plan tailored specifically for your needs. Unlock premium features at an unbeatable value.': 'Criamos o plano perfeito especialmente adaptado às suas necessidades. Desbloqueie recursos premium com um valor imbatível.',
47+
"We've handcrafted the perfect plan tailored specifically for your needs. Unlock premium features at an unbeatable value.":
48+
'Criamos o plano perfeito especialmente adaptado às suas necessidades. Desbloqueie recursos premium com um valor imbatível.',
2849
'Manage up to 25 premium products': 'Gerencie até 25 produtos premium',
29-
'Grow your audience with 10,000 subscribers': 'Aumente seu público com 10.000 assinantes',
30-
'Make data-driven decisions with advanced analytics': 'Tome decisões baseadas em dados com análises avançadas',
31-
'Priority support with 24-hour response time': 'Suporte prioritário com tempo de resposta de 24 horas',
32-
'Seamless integration with your favorite tools': 'Integração perfeita com suas ferramentas favoritas',
50+
'Grow your audience with 10,000 subscribers':
51+
'Aumente seu público com 10.000 assinantes',
52+
'Make data-driven decisions with advanced analytics':
53+
'Tome decisões baseadas em dados com análises avançadas',
54+
'Priority support with 24-hour response time':
55+
'Suporte prioritário com tempo de resposta de 24 horas',
56+
'Seamless integration with your favorite tools':
57+
'Integração perfeita com suas ferramentas favoritas',
3358
'Claim Your Special Offer': 'Reivindique Sua Oferta Especial',
34-
'Limited time offer - Upgrade now and save 20%': 'Oferta por tempo limitado - Atualize agora e economize 20%',
35-
'No credit card required. 14-day free trial available.': 'Não é necessário cartão de crédito. Teste gratuito de 14 dias disponível.',
59+
'Limited time offer - Upgrade now and save 20%':
60+
'Oferta por tempo limitado - Atualize agora e economize 20%',
61+
'No credit card required. 14-day free trial available.':
62+
'Não é necessário cartão de crédito. Teste gratuito de 14 dias disponível.',
3663
};
3764

38-
export function Pricing({
39-
locale
40-
}: PricingProps) {
65+
export function Pricing({ locale }: PricingProps) {
4166
const messages = locale === 'en' ? enMessages : ptMessages;
4267
const { formatMessage } = createIntl({
4368
locale,
@@ -50,21 +75,25 @@ export function Pricing({
5075
<Head />
5176
<Body>
5277
<Preview>
53-
{formatMessage({ id: 'Exclusive Offer Just For You: Unlock Premium Features at $12/month' })}
78+
{formatMessage({
79+
id: 'Exclusive Offer Just For You: Unlock Premium Features at $12/month',
80+
})}
5481
</Preview>
5582
<Container className="bg-white rounded-[12px] mx-auto max-w-[500px] p-[24px]">
5683
<Section className="bg-white border border-solid border-gray-300 rounded-[12px] text-gray-600 p-[28px] w-full text-left mb-0">
5784
<Text className="text-indigo-600 text-[12px] leading-[20px] font-semibold tracking-wide mb-[16px] mt-[16px] uppercase">
58-
{formatMessage({ id: "Exclusive Offer" })}
85+
{formatMessage({ id: 'Exclusive Offer' })}
5986
</Text>
6087
<Text className="text-[30px] font-bold leading-[36px] mb-[12px] mt-0">
6188
<span className="text-[rgb(16,24,40)]">$12</span>{' '}
6289
<span className="text-[16px] font-medium leading-[20px]">
63-
{formatMessage({ id: "/ month" })}
90+
{formatMessage({ id: '/ month' })}
6491
</span>
6592
</Text>
6693
<Text className="text-gray-700 text-[14px] leading-[20px] mt-[16px] mb-[24px]">
67-
{formatMessage({ id: "We've handcrafted the perfect plan tailored specifically for your needs. Unlock premium features at an unbeatable value." })}
94+
{formatMessage({
95+
id: "We've handcrafted the perfect plan tailored specifically for your needs. Unlock premium features at an unbeatable value.",
96+
})}
6897
</Text>
6998
<ul className="text-gray-500 text-[14px] leading-[24px] mb-[32px] pl-[14px]">
7099
{[
@@ -87,10 +116,14 @@ export function Pricing({
87116
</Button>
88117
<Hr />
89118
<Text className="text-gray-500 text-[12px] leading-[16px] italic mt-[24px] mb-[6px] text-center">
90-
{formatMessage({ id: 'Limited time offer - Upgrade now and save 20%' })}
119+
{formatMessage({
120+
id: 'Limited time offer - Upgrade now and save 20%',
121+
})}
91122
</Text>
92123
<Text className="text-gray-500 text-[12px] m-0 leading-[16px] text-center">
93-
{formatMessage({ id: 'No credit card required. 14-day free trial available.' })}
124+
{formatMessage({
125+
id: 'No credit card required. 14-day free trial available.',
126+
})}
94127
</Text>
95128
</Section>
96129
</Container>

renovate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended"
5-
]
3+
"extends": ["config:recommended"]
64
}

0 commit comments

Comments
 (0)