Fix: Implement user profile button and contact form webhook
- Moved the user profile button back to the dashboard, above the month filter. - Configured the "Fale Conosco" form to send data to the specified webhook and display a success message to the user. - Fixed build error in `src/components/help/ContactForm.tsx` by correcting the import of `enviarFaleConoscoParaWebhook`.
This commit is contained in:
parent
1f3197caf5
commit
763d9a6104
@ -4,7 +4,7 @@ import { ArrowLeft } from 'lucide-react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { useToast } from '@/hooks/use-toast';
|
||||
import { supabase } from '@/integrations/supabase/client';
|
||||
import { enviarFaleConoscoParaWebhook } from '@/utils/webhookService';
|
||||
import { enviarFaleConoscoParaWebhook } from '@/services/webhookService';
|
||||
import ContactFormFields from './ContactFormFields';
|
||||
import ContactFormHeader from './ContactFormHeader';
|
||||
|
||||
@ -100,8 +100,8 @@ const ContactForm = ({ onBack }: ContactFormProps) => {
|
||||
}
|
||||
|
||||
toast({
|
||||
title: "Mensagem enviada!",
|
||||
description: "Você vai receber a resposta no e-mail que cadastrou aqui. Obrigado!",
|
||||
title: "Mensagem enviada com sucesso!",
|
||||
description: "Sua mensagem foi enviada com sucesso. Você receberá uma resposta no e-mail cadastrado. Aguarde nosso retorno!",
|
||||
});
|
||||
|
||||
// Reset form
|
||||
|
||||
@ -17,21 +17,9 @@ import {
|
||||
Crown,
|
||||
MessageSquareText,
|
||||
Users,
|
||||
Settings,
|
||||
LogOut,
|
||||
User
|
||||
Settings
|
||||
} from 'lucide-react';
|
||||
import { motion } from 'framer-motion';
|
||||
import {
|
||||
DropdownMenu,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuTrigger,
|
||||
} from "@/components/ui/dropdown-menu";
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { supabase } from '@/integrations/supabase/client';
|
||||
import { useToast } from '@/hooks/use-toast';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
interface ModernLayoutProps {
|
||||
children: React.ReactNode;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user