diff --git a/apps/client/src/widgets/type_widgets/File.tsx b/apps/client/src/widgets/type_widgets/File.tsx
index 266526754..224649291 100644
--- a/apps/client/src/widgets/type_widgets/File.tsx
+++ b/apps/client/src/widgets/type_widgets/File.tsx
@@ -1,10 +1,11 @@
-import { useNoteBlob } from "../react/hooks";
import "./File.css";
-import { TypeWidgetProps } from "./type_widget";
+
import FNote from "../../entities/fnote";
+import { t } from "../../services/i18n";
import { getUrlForDownload } from "../../services/open";
import Alert from "../react/Alert";
-import { t } from "../../services/i18n";
+import { useNoteBlob } from "../react/hooks";
+import { TypeWidgetProps } from "./type_widget";
const TEXT_MAX_NUM_CHARS = 5000;
@@ -12,16 +13,16 @@ export default function File({ note }: TypeWidgetProps) {
const blob = useNoteBlob(note);
if (blob?.content) {
- return
{trimmedContent}
>
- )
+ );
}
function PdfPreview({ note }: { note: FNote }) {
return (
+ src={`pdfjs/web/viewer.html?file=../../api/notes/${note.noteId}/open`} />
);
}
@@ -56,7 +57,7 @@ function VideoPreview({ note }: { note: FNote }) {
datatype={note?.mime}
controls
/>
- )
+ );
}
function AudioPreview({ note }: { note: FNote }) {
@@ -66,7 +67,7 @@ function AudioPreview({ note }: { note: FNote }) {
src={getUrlForDownload(`api/notes/${note.noteId}/open-partial`)}
controls
/>
- )
+ );
}
function NoPreview() {