fix: dark mode no admin, links mensagens dashboard, WhatsApp correto - Adicionado botão de dark mode no header do painel admin - Corrigido links do dashboard: /admin/contatos -> /admin/mensagens - Corrigido número WhatsApp: 5535988229445 (formato correto BR)
This commit is contained in:
@@ -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/553598829445');
|
||||
const [whatsappLink, setWhatsappLink] = useState('https://wa.me/5535988229445');
|
||||
|
||||
// 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/553598829445');
|
||||
const [whatsappLink, setWhatsappLink] = useState('https://wa.me/5535988229445');
|
||||
|
||||
useEffect(() => {
|
||||
// Busca o número do WhatsApp do CMS
|
||||
|
||||
Reference in New Issue
Block a user