From 069963c116088c3a9d755c98af8b5b85083cb64b Mon Sep 17 00:00:00 2001 From: Regalijan Date: Mon, 9 Dec 2024 16:01:43 -0500 Subject: [PATCH] Attempt to improve info modal --- app/routes/events-calendar.tsx | 35 +++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/app/routes/events-calendar.tsx b/app/routes/events-calendar.tsx index ded5fd4..3b8a718 100644 --- a/app/routes/events-calendar.tsx +++ b/app/routes/events-calendar.tsx @@ -13,6 +13,7 @@ import { Box, Button, Container, + Heading, Modal, ModalBody, ModalCloseButton, @@ -20,6 +21,7 @@ import { ModalFooter, ModalHeader, ModalOverlay, + Text, useDisclosure, } from "@chakra-ui/react"; import { useLoaderData } from "@remix-run/react"; @@ -104,20 +106,31 @@ export default function () { Event Info - Host:{" "} - { - ( - data.memberData.find((m) => m.id === eventData.created_by) as { - [k: string]: any; - } - )?.name - } + Host + + { + ( + data.memberData.find( + (m) => m.id === eventData.created_by, + ) as { + [k: string]: any; + } + )?.name + } +
- Event Type: {eventData?.type?.toUpperCase()} + Event Type + {eventData?.type?.toUpperCase()}
- Details: {eventData?.details} + Details + {eventData?.details}
- Answer: {eventData?.type === "rotw" ? eventData.answer : "N/A"} + {eventData?.type === "rotw" ? ( + <> + Answer + {eventData.answer} + + ) : null}