mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
feat: implement EnvelopeReveal component for letter interactions and integrate into reader workflow
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user