diff --git a/scripts/push-remove-whatsapp.ts b/scripts/push-remove-whatsapp.ts new file mode 100644 index 0000000..b8d770f --- /dev/null +++ b/scripts/push-remove-whatsapp.ts @@ -0,0 +1,24 @@ +import { execSync } from 'child_process'; + +async function pushUpdates() { + try { + console.log('\nAdicionando arquivos para remover botão de WhatsApp...'); + execSync('git add src/App.tsx scripts/push-remove-whatsapp.ts', { stdio: 'inherit' }); + execSync('git rm src/components/FloatingWhatsApp.tsx', { stdio: 'inherit' }); + + try { + execSync('git commit -m "refactor: remove botão de whatsapp flutuante"', { stdio: 'inherit' }); + } catch (e) { + console.log('Nada para commitar.'); + } + + console.log('\nFazendo push do código...'); + execSync('git push origin main', { stdio: 'inherit' }); + + console.log(`\n🎉 Push concluído com sucesso!`); + } catch (error: any) { + console.error('\n❌ Ocorreu um erro:', error.message); + } +} + +pushUpdates(); diff --git a/src/App.tsx b/src/App.tsx index aad7ef0..e44807b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -10,7 +10,6 @@ import FAQ from './components/FAQ'; import CTA from './components/CTA'; import Footer from './components/Footer'; import Results from './components/Results'; -import FloatingWhatsApp from './components/FloatingWhatsApp'; import StickyMobileCTA from './components/StickyMobileCTA'; import { useUTMForwarder } from './hooks/useUTMForwarder'; @@ -44,7 +43,6 @@ export default function App() { - ); diff --git a/src/components/FloatingWhatsApp.tsx b/src/components/FloatingWhatsApp.tsx deleted file mode 100644 index 18d8f7c..0000000 --- a/src/components/FloatingWhatsApp.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { MessageCircle } from 'lucide-react'; -import { motion } from 'framer-motion'; - -export default function FloatingWhatsApp() { - // Coloque aqui o número do seu WhatsApp com DDI (Ex: 5511999999999) - const whatsappNumber = "447944441041"; - const defaultMessage = "Olá! Tenho uma dúvida sobre o kit Festa Mágica IA."; - const url = `https://wa.me/${whatsappNumber}?text=${encodeURIComponent(defaultMessage)}`; - - return ( - - - - {/* Tooltip */} - - Fale com nosso suporte - - - - ); -}