mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
fix: handle type errors in build
This commit is contained in:
@@ -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";
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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()}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -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 />} />
|
||||||
|
|||||||
Reference in New Issue
Block a user