feat: change language
This commit is contained in:
@@ -3,6 +3,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 { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
|
||||
import { Badge } from "@/components/ui/badge"
|
||||
import { Button } from "@/components/ui/button"
|
||||
@@ -146,6 +147,14 @@ export default async function GuestDetailPage({
|
||||
<CardDescription>Admin-managed invitation fields.</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3 text-sm">
|
||||
<div className="space-y-2">
|
||||
<span className="text-muted-foreground">Language</span>
|
||||
<InvitationLanguageSelect
|
||||
invitationId={detail.invitation.id}
|
||||
currentLanguage={detail.invitation.language}
|
||||
displayName={detail.invitation.display_name}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex justify-between gap-4">
|
||||
<span className="text-muted-foreground">Contact email</span>
|
||||
<span className="text-right">{detail.invitation.contact_email ?? "—"}</span>
|
||||
|
||||
Reference in New Issue
Block a user