diff --git a/src/components/forms/event-form.tsx b/src/components/forms/event-form.tsx index 8be2602..afe424d 100644 --- a/src/components/forms/event-form.tsx +++ b/src/components/forms/event-form.tsx @@ -14,7 +14,7 @@ import { import ParticipantListEntry from '@/components/custom-ui/participantListEntry'; import { useRouter } from 'next/navigation'; import { toast } from 'sonner'; -import { CalendarCheck } from 'lucide-react'; +import { ToastInner } from '@/components/misc/toast-inner'; interface EventFormProps { type: 'create' | 'edit'; @@ -134,10 +134,16 @@ const EventForm: React.FC = (props) => { createEvent({ data }); } - toast('Event saved successfully', { - description: `Your event "${data.title}" has been saved.`, - icon: , - }); + toast.custom((t) => ( + router.push(`/event/${event?.id}`)} + variant='success' + buttonText='show' + /> + )); router.back(); }