diff --git a/src/components/notes/note-file-preview.tsx b/src/components/notes/note-file-preview.tsx index 6008c01..ba3f600 100644 --- a/src/components/notes/note-file-preview.tsx +++ b/src/components/notes/note-file-preview.tsx @@ -1,4 +1,4 @@ -import { Show, createEffect, createSignal, onCleanup } from "solid-js"; +import { Match, Show, Switch, createEffect, createSignal, onCleanup } from "solid-js"; import { formatApiError } from "@/api/client"; import { getNoteFileBlob } from "@/api/getNoteFileBlob"; import type { NoteFile } from "@/api/types"; @@ -77,20 +77,22 @@ export function NoteFilePreview(props: { noteId: string; file: NoteFile | null; fallback={

{t("notes.previewUnsupported")}

} > {previewError()}

}> - {t("common.loading")}

}> - {file().name} -
- - - -
-
-
- -