diff --git a/app/ui/invitations/board.tsx b/app/ui/invitations/board.tsx index 1206ff1..4cc7cc4 100644 --- a/app/ui/invitations/board.tsx +++ b/app/ui/invitations/board.tsx @@ -11,6 +11,7 @@ import { LinkIcon, TrashIcon } from "@heroicons/react/24/outline"; import { useEffect, useRef } from "react"; import { useState } from "react"; import { classNames } from "../components/button"; +import { Toast } from "primereact/toast"; function InvitationCard({ invitation, allGuests, onGuestAdded, onDestroy }: { invitation: Invitation, @@ -117,6 +118,7 @@ export default function InvitationsBoard({ guests, invitations: originalInvitati guests: Array, invitations: Array }) { + const toast = useRef(null); const api = new AbstractApi(); const serializer = new InvitationSerializer(); @@ -147,13 +149,18 @@ export default function InvitationsBoard({ guests, invitations: originalInvitati function handleDownloadQrCodes() { api.post(serializer, 'email', () => { - console.log("Email scheduled to be sent with QR codes."); + toast.current?.show({ + severity: 'success', + summary: 'Email scheduled', + detail: 'A document with the QR codes will be sent to the organizer\'s email.' + }); }) } return (
{/* Left Column: Guests */} +

{unassignedGuests.length} guests without invitation