diff --git a/src/components/dashboard/EventsSection/EventCheckIn.tsx b/src/components/dashboard/EventsSection/EventCheckIn.tsx index d53fd2a..f2b48ab 100644 --- a/src/components/dashboard/EventsSection/EventCheckIn.tsx +++ b/src/components/dashboard/EventsSection/EventCheckIn.tsx @@ -5,6 +5,7 @@ import { Update } from "../../../scripts/pocketbase/Update"; import { SendLog } from "../../../scripts/pocketbase/SendLog"; import { Icon } from "@iconify/react"; + interface Event { id: string; event_name: string; @@ -63,15 +64,16 @@ const createToast = ( ? "alert-error bg-error text-error-content" : "alert-warning bg-warning text-warning-content"; + const iconName = type === "success" + ? "heroicons:check-circle" + : type === "error" + ? "heroicons:x-circle" + : "heroicons:exclamation-triangle"; + toast.innerHTML = `