fix: número WhatsApp correto 553598829445
This commit is contained in:
@@ -27,7 +27,7 @@ export async function GET() {
|
||||
// Retorna valores padrão
|
||||
return NextResponse.json({
|
||||
whatsapp: '(35) 9882-9445',
|
||||
whatsappLink: 'https://wa.me/5535988229445'
|
||||
whatsappLink: 'https://wa.me/553598829445'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ export async function GET() {
|
||||
|
||||
const result = {
|
||||
whatsapp: whatsappItem?.linkText || '(35) 9882-9445',
|
||||
whatsappLink: whatsappItem?.link || 'https://wa.me/5535988229445'
|
||||
whatsappLink: whatsappItem?.link || 'https://wa.me/553598829445'
|
||||
};
|
||||
|
||||
// Atualiza cache
|
||||
@@ -62,7 +62,7 @@ export async function GET() {
|
||||
// Retorna valores padrão em caso de erro
|
||||
return NextResponse.json({
|
||||
whatsapp: '(35) 9882-9445',
|
||||
whatsappLink: 'https://wa.me/5535988229445'
|
||||
whatsappLink: 'https://wa.me/553598829445'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ export default function Header() {
|
||||
const { theme, setTheme } = useTheme();
|
||||
const { locale, setLocale, t } = useLocale();
|
||||
const [mounted, setMounted] = useState(false);
|
||||
const [whatsappLink, setWhatsappLink] = useState('https://wa.me/5535988229445');
|
||||
const [whatsappLink, setWhatsappLink] = useState('https://wa.me/553598829445');
|
||||
|
||||
// Prefixo para links baseado no locale
|
||||
const prefix = locale === 'pt' ? '' : `/${locale}`;
|
||||
|
||||
@@ -6,7 +6,7 @@ import { useState, useEffect } from 'react';
|
||||
|
||||
export default function WhatsAppButton() {
|
||||
const { t } = useLanguage();
|
||||
const [whatsappLink, setWhatsappLink] = useState('https://wa.me/5535988229445');
|
||||
const [whatsappLink, setWhatsappLink] = useState('https://wa.me/553598829445');
|
||||
|
||||
useEffect(() => {
|
||||
// Busca o número do WhatsApp do CMS
|
||||
|
||||
Reference in New Issue
Block a user