feat: edit guest from guest groups
This commit is contained in:
@@ -4,6 +4,7 @@ import { notFound } from "next/navigation"
|
||||
import { CopyInviteButton } from "@/components/admin/copy-invite-button"
|
||||
import { DeleteInvitationDialog } from "@/components/admin/delete-invitation-dialog"
|
||||
import { InvitationLanguageSelect } from "@/components/admin/invitation-language-select"
|
||||
import { MemberManagement } from "@/components/admin/member-management"
|
||||
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
|
||||
import { Badge } from "@/components/ui/badge"
|
||||
import { Button } from "@/components/ui/button"
|
||||
@@ -195,6 +196,7 @@ export default async function GuestDetailPage({
|
||||
<TableHead>Attending</TableHead>
|
||||
<TableHead>Meal</TableHead>
|
||||
<TableHead>Dietary restrictions</TableHead>
|
||||
<TableHead className="text-right">Actions</TableHead>
|
||||
</TableRow>
|
||||
</TableHeader>
|
||||
<TableBody>
|
||||
@@ -205,6 +207,14 @@ export default async function GuestDetailPage({
|
||||
<TableCell>{formatBoolean(member.attending)}</TableCell>
|
||||
<TableCell>{member.meal_preference ?? "—"}</TableCell>
|
||||
<TableCell>{member.dietary_restrictions ?? "—"}</TableCell>
|
||||
<TableCell className="text-right">
|
||||
<MemberManagement
|
||||
invitationId={detail.invitation.id}
|
||||
memberId={member.id}
|
||||
memberName={member.name}
|
||||
canDelete={detail.members.length > 1}
|
||||
/>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
|
||||
Reference in New Issue
Block a user