feat: heic support

This commit is contained in:
Raul Lugo
2026-09-12 23:50:10 +02:00
parent b78d1ee094
commit 5aa35e7d18
18 changed files with 336 additions and 153 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ export function RsvpForm({
dictionary,
closed,
toastRequest,
filename,
photo,
}: {
action: (formData: FormData) => void | Promise<void>
detail: InvitationDetail
@@ -22,14 +22,14 @@ export function RsvpForm({
dictionary: GuestDictionary
closed: boolean
toastRequest: ToastRequest | undefined
filename: string | null
photo: { filename: string | null; url: string } | null
}) {
return (
<form action={action} className="mt-12">
<RsvpGuestFields members={detail.members} dictionary={dictionary} disabled={closed} />
<RsvpTravelFields response={detail.response} dictionary={dictionary} disabled={closed} />
<RsvpToastFields members={detail.members} toastRequest={toastRequest} dictionary={dictionary} disabled={closed} />
<div className="py-10"><PhotoUpload token={token} labels={dictionary.upload} disabled={closed} existingFilename={filename} /></div>
<div className="py-10"><PhotoUpload token={token} labels={dictionary.upload} disabled={closed} existingPhoto={photo} /></div>
{!closed ? <div className="max-w-3xl mx-auto"><button type="submit" className="wedding-primary-cta w-full">{dictionary.form.submit} →</button></div> : null}
</form>
)