From 5fca0f9316d3c6b8a03a32328a2787314d93058f Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 4 Jan 2026 18:53:04 +0000 Subject: [PATCH] style: apply prettier formatting --- src/components/pages/PreviewEventPage.tsx | 4 +++- src/hooks/useNip19Decode.test.ts | 10 ++++------ src/hooks/useNip19Decode.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/pages/PreviewEventPage.tsx b/src/components/pages/PreviewEventPage.tsx index d792319..7bd3656 100644 --- a/src/components/pages/PreviewEventPage.tsx +++ b/src/components/pages/PreviewEventPage.tsx @@ -55,7 +55,9 @@ export default function PreviewEventPage() { // Validate that we got an event-type entity useEffect(() => { if (decoded && decoded.type !== "nevent" && decoded.type !== "note") { - toast.error(`Invalid identifier type: expected nevent or note, got ${decoded.type}`); + toast.error( + `Invalid identifier type: expected nevent or note, got ${decoded.type}`, + ); } }, [decoded]); diff --git a/src/hooks/useNip19Decode.test.ts b/src/hooks/useNip19Decode.test.ts index 5e4381b..e71df7f 100644 --- a/src/hooks/useNip19Decode.test.ts +++ b/src/hooks/useNip19Decode.test.ts @@ -105,9 +105,7 @@ describe("useNip19Decode", () => { }); it("should handle invalid identifier format", () => { - const { result } = renderHook(() => - useNip19Decode("invalid-identifier") - ); + const { result } = renderHook(() => useNip19Decode("invalid-identifier")); expect(result.current.decoded).toBeNull(); expect(result.current.error).toBeTruthy(); @@ -115,7 +113,7 @@ describe("useNip19Decode", () => { it("should handle corrupted bech32 string", () => { const { result } = renderHook(() => - useNip19Decode("npub1invalidbech32string") + useNip19Decode("npub1invalidbech32string"), ); expect(result.current.decoded).toBeNull(); @@ -130,7 +128,7 @@ describe("useNip19Decode", () => { ({ id }: { id: string | undefined }) => useNip19Decode(id), { initialProps: { id: npub as string }, - } + }, ); const firstResult = result.current; @@ -149,7 +147,7 @@ describe("useNip19Decode", () => { ({ id }: { id: string | undefined }) => useNip19Decode(id), { initialProps: { id: npub as string }, - } + }, ); expect(result.current.decoded?.type).toBe("npub"); diff --git a/src/hooks/useNip19Decode.ts b/src/hooks/useNip19Decode.ts index 8005bb5..bf4eaba 100644 --- a/src/hooks/useNip19Decode.ts +++ b/src/hooks/useNip19Decode.ts @@ -50,7 +50,7 @@ export interface UseNip19DecodeResult { */ export function useNip19Decode( identifier: string | undefined, - expectedType?: Nip19EntityType + expectedType?: Nip19EntityType, ): UseNip19DecodeResult { return useMemo(() => { if (!identifier) {