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 { Button } from '@/components/ui/button';
|
||||||
import { useToast } from '@/hooks/use-toast';
|
import { useToast } from '@/hooks/use-toast';
|
||||||
import { supabase } from '@/integrations/supabase/client';
|
import { supabase } from '@/integrations/supabase/client';
|
||||||
import { enviarFaleConoscoParaWebhook } from '@/utils/webhookService';
|
import { enviarFaleConoscoParaWebhook } from '@/services/webhookService';
|
||||||
import ContactFormFields from './ContactFormFields';
|
import ContactFormFields from './ContactFormFields';
|
||||||
import ContactFormHeader from './ContactFormHeader';
|
import ContactFormHeader from './ContactFormHeader';
|
||||||
|
|
||||||
@ -100,8 +100,8 @@ const ContactForm = ({ onBack }: ContactFormProps) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toast({
|
toast({
|
||||||
title: "Mensagem enviada!",
|
title: "Mensagem enviada com sucesso!",
|
||||||
description: "Você vai receber a resposta no e-mail que cadastrou aqui. Obrigado!",
|
description: "Sua mensagem foi enviada com sucesso. Você receberá uma resposta no e-mail cadastrado. Aguarde nosso retorno!",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Reset form
|
// Reset form
|
||||||
|
|||||||
@ -17,21 +17,9 @@ import {
|
|||||||
Crown,
|
Crown,
|
||||||
MessageSquareText,
|
MessageSquareText,
|
||||||
Users,
|
Users,
|
||||||
Settings,
|
Settings
|
||||||
LogOut,
|
|
||||||
User
|
|
||||||
} from 'lucide-react';
|
} from 'lucide-react';
|
||||||
import { motion } from 'framer-motion';
|
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 {
|
interface ModernLayoutProps {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user