diff --git a/src/pages/admin/ViewTicket.page.tsx b/src/pages/admin/ViewTicket.page.tsx index 4abd4b8b..427595fa 100644 --- a/src/pages/admin/ViewTicket.page.tsx +++ b/src/pages/admin/ViewTicket.page.tsx @@ -1,3 +1,4 @@ +import { Tab } from "@headlessui/react"; import { useAuth } from "@/providers/auth.provider"; import { useEffect, useRef, useState } from "react"; import { useNavigate, useParams } from "react-router-dom"; @@ -7,6 +8,8 @@ import { useNotification } from "@/providers/notification.provider"; import { getRedeemableItems, redeemItem } from "@/services/utils"; import { Button, LoadingAnimation, Modal } from "@/components"; +const categories = ["Important", "Workshop", "Game/Chill", "Food"]; + export const AdminViewTicketPage = () => { const [isLoading, setIsLoading] = useState(true); const { ticketId } = useParams(); @@ -109,38 +112,66 @@ export const AdminViewTicketPage = () => {

No known allergies

)} -
-

Events

- -
+ + + {categories.map((category) => ( + + `p-4 rounded-lg border-2 border-tbrand ${ + selected ? "bg-tbrand text-white" : "" + }` + } + > + {category} + + ))} + + + {categories.map((category, idx) => ( + +

+ {category} +

+
    + {events + .filter( + (e) => + e.type.toLowerCase() === + category.toLowerCase() + ) + .map((e) => ( +
  • +
    +
    +

    + Title: + + {e.title} + +

    +
    + +
    +
  • + ))} +
+
+ ))} +
+
{ ); }; -