fix: usar número do WhatsApp correto 553598829445 em todos os campos

This commit is contained in:
Erik
2025-12-04 12:09:04 -03:00
parent 815a70bc41
commit 6f990c06b2
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ export async function GET() {
// Retorna valores padrão // Retorna valores padrão
return NextResponse.json({ return NextResponse.json({
whatsapp: '(35) 9882-9445', whatsapp: '(35) 9882-9445',
whatsappLink: 'https://wa.me/5535988229445' whatsappLink: 'https://api.whatsapp.com/send/?phone=553598829445&text&type=phone_number&app_absent=0'
}); });
} }
@@ -48,7 +48,7 @@ export async function GET() {
const result = { const result = {
whatsapp: whatsappItem?.linkText || '(35) 9882-9445', whatsapp: whatsappItem?.linkText || '(35) 9882-9445',
whatsappLink: whatsappItem?.link || 'https://wa.me/5535988229445' whatsappLink: whatsappItem?.link || 'https://api.whatsapp.com/send/?phone=553598829445&text&type=phone_number&app_absent=0'
}; };
// Atualiza cache // Atualiza cache
@@ -62,7 +62,7 @@ export async function GET() {
// Retorna valores padrão em caso de erro // Retorna valores padrão em caso de erro
return NextResponse.json({ return NextResponse.json({
whatsapp: '(35) 9882-9445', whatsapp: '(35) 9882-9445',
whatsappLink: 'https://wa.me/5535988229445' whatsappLink: 'https://api.whatsapp.com/send/?phone=553598829445&text&type=phone_number&app_absent=0'
}); });
} }
} }

View File

@@ -19,7 +19,7 @@ export default function Header() {
const { theme, setTheme } = useTheme(); const { theme, setTheme } = useTheme();
const { locale, setLocale, t } = useLocale(); const { locale, setLocale, t } = useLocale();
const [mounted, setMounted] = useState(false); const [mounted, setMounted] = useState(false);
const [whatsappLink, setWhatsappLink] = useState('https://wa.me/5535988229445'); const [whatsappLink, setWhatsappLink] = useState('https://api.whatsapp.com/send/?phone=553598829445&text&type=phone_number&app_absent=0');
// Prefixo para links baseado no locale // Prefixo para links baseado no locale
const prefix = locale === 'pt' ? '' : `/${locale}`; const prefix = locale === 'pt' ? '' : `/${locale}`;