change and add into components, widgets and pages

This commit is contained in:
LathanDevers
2026-07-30 14:08:49 +02:00
parent ec900efe3a
commit 057aa628a3
39 changed files with 1620 additions and 1062 deletions
+21
View File
@@ -0,0 +1,21 @@
import { useNavigate } from 'react-router-dom';
import { NewTicketWidget } from '@/components/widgets/NewTicketWidget';
import { BackButton } from '@/components/ui/BackButton'; // Importation de notre nouvel Atome
export default function NewTicket() {
const navigate = useNavigate();
return (
<div className="max-w-4xl mx-auto py-8 px-4 space-y-6">
{/* BOUTON DE RETOUR EXTRAIT */}
<BackButton to="/support" label="Annuler et retourner au Service Desk" />
{/* WIDGET DU FORMULAIRE */}
<NewTicketWidget
onCancel={() => navigate('/support')}
onSuccess={(ticketId) => navigate(`/support/tickets/${ticketId}`)}
/>
</div>
);
}