From fc22a79f12d4356e939068df5215b3bcc5eb37c4 Mon Sep 17 00:00:00 2001 From: chark1es Date: Tue, 18 Feb 2025 04:45:46 -0800 Subject: [PATCH] fix icon issues --- .../dashboard/EventsSection/EventCheckIn.tsx | 22 ++++++++++++------- src/pages/dashboard.astro | 3 +++ 2 files changed, 17 insertions(+), 8 deletions(-) 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 = `
- + ${message}
@@ -273,11 +275,15 @@ const EventCheckIn = () => { />