Comment out RSVP section and update Gift Registry text
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 51s

The RSVP section is now commented out, removing its visibility from the page. Additionally, the text and button for the Gift Registry section have been updated to better reflect its purpose, allowing users to manage and edit the registry.
This commit is contained in:
2025-03-15 20:58:17 +01:00
parent df5a11a2a3
commit 3800fcea19

View File

@@ -312,34 +312,34 @@ export default function EventDetailPage() {
</CardContent> </CardContent>
</Card> </Card>
{event.rsvp_enabled && ( {/*{event.rsvp_enabled && (*/}
<Card> {/* <Card>*/}
<CardHeader> {/* <CardHeader>*/}
<CardTitle>RSVP</CardTitle> {/* <CardTitle>RSVP</CardTitle>*/}
<CardDescription> {/* <CardDescription>*/}
Let the host know if you'll be attending {/* Let the host know if you'll be attending*/}
</CardDescription> {/* </CardDescription>*/}
</CardHeader> {/* </CardHeader>*/}
<CardFooter> {/* <CardFooter>*/}
<Button asChild className="w-full"> {/* <Button asChild className="w-full">*/}
<Link href={`/events/${event.slug}/rsvp`}>RSVP Now</Link> {/* <Link href={`/events/${event.slug}/rsvp`}>RSVP Now</Link>*/}
</Button> {/* </Button>*/}
</CardFooter> {/* </CardFooter>*/}
</Card> {/* </Card>*/}
)} {/*)}*/}
{event.gift_registry_enabled && ( {event.gift_registry_enabled && (
<Card> <Card>
<CardHeader> <CardHeader>
<CardTitle>Gift Registry</CardTitle> <CardTitle>Gift Registry</CardTitle>
<CardDescription> <CardDescription>
View gift suggestions for this event Manage gift suggestions for this event
</CardDescription> </CardDescription>
</CardHeader> </CardHeader>
<CardFooter> <CardFooter>
<Button variant="outline" asChild className="w-full"> <Button variant="outline" asChild className="w-full">
<Link href={`/events/${event.slug}/gifts`}> <Link href={`/events/${event.slug}/gifts`}>
View Gift Registry Edit Gift Registry
</Link> </Link>
</Button> </Button>
</CardFooter> </CardFooter>