fix: handle type errors in build

This commit is contained in:
ramvignesh-b
2026-04-22 15:13:07 +05:30
parent 50bae8d2ce
commit b9d1880951
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { LockIcon, LockKeyOpenIcon, LockOpenIcon } from "@phosphor-icons/react"; import { LockIcon, LockKeyOpenIcon } from "@phosphor-icons/react";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import { PATHS } from "../../config/routes"; import { PATHS } from "../../config/routes";
+1 -1
View File
@@ -10,7 +10,7 @@ export interface Letter {
status: "DRAFT" | "SEALED" | "BURNED"; status: "DRAFT" | "SEALED" | "BURNED";
updated_at: string; updated_at: string;
sealed_at?: string; sealed_at?: string;
unlock_at?: string; unlock_at: string;
encrypted_metadata: string; encrypted_metadata: string;
encrypted_content: string; encrypted_content: string;
encrypted_dek: string; encrypted_dek: string;
+1 -1
View File
@@ -175,7 +175,7 @@ export default function Drawer() {
id={letter.public_id} id={letter.public_id}
preview={letter.metadata?.recipient || "Future Self"} preview={letter.metadata?.recipient || "Future Self"}
timestamp={formatRelativeDate(letter.updated_at)} timestamp={formatRelativeDate(letter.updated_at)}
unlock_at={formateRelativeDateWithoutTime(letter.unlock_at)} unlock_at={formateRelativeDateWithoutTime(letter.unlock_at || "")}
isLocked={letter.unlock_at > new Date().toISOString()} isLocked={letter.unlock_at > new Date().toISOString()}
/> />
))} ))}
+1 -1
View File
@@ -69,7 +69,7 @@ describe("Reader Page", () => {
}), }),
); );
const {container} = render( render(
<MemoryRouter initialEntries={[`/read/${mockPublicId}#${sharingKey}`]}> <MemoryRouter initialEntries={[`/read/${mockPublicId}#${sharingKey}`]}>
<Routes> <Routes>
<Route path="/read/:public_id" element={<Reader />} /> <Route path="/read/:public_id" element={<Reader />} />