Update EventDetails and RSVPForm components with needed items functionality and improved styling

This commit is contained in:
2025-04-29 19:56:17 -04:00
parent 4b800c849b
commit 765da97b52
2 changed files with 17 additions and 15 deletions

View File

@@ -181,9 +181,9 @@ const EventDetails: React.FC = () => {
Bringing {rsvp.guest_count} guest{rsvp.guest_count !== 1 ? 's' : ''}: {rsvp.guest_names}
</Typography>
)}
{rsvp.items_bringing && (
<Typography variant="body2" color="text.secondary">
<strong>Items:</strong> {rsvp.items_bringing}
{rsvp.items_bringing && rsvp.items_bringing.length > 0 && (
<Typography>
<strong>Items:</strong> {Array.isArray(rsvp.items_bringing) ? rsvp.items_bringing.join(', ') : rsvp.items_bringing}
</Typography>
)}
</Box>