feat: Add RSVP cut-off date display to event view page

This commit is contained in:
Starstrike
2025-05-01 14:05:09 -04:00
parent bca4695abc
commit 8df651e658

View File

@@ -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 = () => {
<Typography variant="subtitle1" gutterBottom>
<strong>Date:</strong> {new Date(event.date).toLocaleString()}
</Typography>
{event.rsvp_cutoff_date && (
<Typography variant="subtitle1" gutterBottom>
<strong>RSVP cut-off date:</strong> {new Date(event.rsvp_cutoff_date).toLocaleString()}
</Typography>
)}
</Box>
<Box sx={{ mb: 4 }}>