feat: implement EnvelopeReveal component for letter interactions and integrate into reader workflow

This commit is contained in:
ramvignesh-b
2026-04-19 19:49:01 +05:30
parent ec769818f5
commit 7bab2937bc
7 changed files with 119 additions and 52 deletions
+2 -2
View File
@@ -455,14 +455,14 @@ export default function Editor() {
</span>
</p>
<form
onSubmit={(e) => {
onSubmit={async (e) => {
e.preventDefault();
const formData = new FormData(e.currentTarget);
const unlockDateStr = formData.get("vault-date") as string;
const newUnlockDate = new Date(unlockDateStr);
setUnlockDate(newUnlockDate);
await handleSave("VAULT", newUnlockDate);
setConfirmModal(null);
handleSave("VAULT", newUnlockDate);
}}
id="vault-form"
>