diff --git a/frontend/src/components/RSVPForm.tsx b/frontend/src/components/RSVPForm.tsx
index 1c2b774..d2d0ef4 100644
--- a/frontend/src/components/RSVPForm.tsx
+++ b/frontend/src/components/RSVPForm.tsx
@@ -18,6 +18,7 @@ import {
OutlinedInput,
Chip,
FormControlLabel, // Import FormControlLabel
+ Divider, // Import Divider
} from '@mui/material';
import VisibilityIcon from '@mui/icons-material/Visibility';
import { Event } from '../types';
@@ -405,12 +406,12 @@ const RSVPForm: React.FC = () => {
Back to Events
}
- onClick={() => navigate(`/view/events/${slug}`)}
+ onClick={() => navigate('/')}
+ sx={{ flexGrow: 1 }}
>
- View RSVPs
+ Back to Events
@@ -447,7 +448,7 @@ const RSVPForm: React.FC = () => {
{event && (
-
+ {/* Changed to left-align */}
{event.title}
@@ -456,12 +457,21 @@ const RSVPForm: React.FC = () => {
Info: {event.description}
)}
-
- Date: {new Date(event.date).toLocaleString()}
-
-
- Location: {event.location}
-
+ {event.description && } {/* Separator after Info */}
+ {/* Grouping Date, Location, and Note */}
+
+ Date: {new Date(event.date).toLocaleString()}
+
+
+ Location: {event.location}
+
+ {event.rsvp_cutoff_date && (
+ {/* Removed align="center" */}
+ Note: RSVPs will close on {new Date(event.rsvp_cutoff_date).toLocaleString()}
+
+ )}
+
+ {event.rsvp_cutoff_date && } {/* Separator after Note */}
)}
@@ -471,12 +481,6 @@ const RSVPForm: React.FC = () => {
)}
- {event?.rsvp_cutoff_date && (
-
- Note: RSVPs will close on {new Date(event.rsvp_cutoff_date).toLocaleString()}
-
- )}
-