From 8df651e658d52da5f08227f0ed0f67c7dcf3c068 Mon Sep 17 00:00:00 2001 From: Starstrike Date: Thu, 1 May 2025 14:05:09 -0400 Subject: [PATCH] feat: Add RSVP cut-off date display to event view page --- frontend/src/components/EventView.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/components/EventView.tsx b/frontend/src/components/EventView.tsx index c6c17b4..bdace12 100644 --- a/frontend/src/components/EventView.tsx +++ b/frontend/src/components/EventView.tsx @@ -35,6 +35,7 @@ interface Event { slug: string; needed_items?: string[] | string; wallpaper?: string; + rsvp_cutoff_date?: string; } const EventView: React.FC = () => { @@ -176,6 +177,11 @@ const EventView: React.FC = () => { Date: {new Date(event.date).toLocaleString()} + {event.rsvp_cutoff_date && ( + + RSVP cut-off date: {new Date(event.rsvp_cutoff_date).toLocaleString()} + + )}