Skip to content

The Open Source DocuSign Alternative.

pdf viewer to editor

Timur Ercan765c8c1ea6c3
diff --git a/apps/web/components/pdf-viewer.jsx b/apps/web/components/editor/pdf-viewer.jsx
similarity index 99%
rename from apps/web/components/pdf-viewer.jsx
rename to apps/web/components/editor/pdf-viewer.jsx
index fdea6ee69..eaea14027 100644
--- a/apps/web/components/pdf-viewer.jsx
+++ b/apps/web/components/editor/pdf-viewer.jsx
@@ -1,6 +1,6 @@
import { Fragment, useState } from "react";
import { Document, Page } from "react-pdf/dist/esm/entry.webpack5";
-import Field from "./editor/field";
+import Field from "./field";
import short from "short-uuid";
import { Button } from "@documenso/ui";
const stc = require("string-to-color");
diff --git a/apps/web/pages/documents/[id]/index.tsx b/apps/web/pages/documents/[id]/index.tsx
index c617258e4..317c78755 100644
--- a/apps/web/pages/documents/[id]/index.tsx
+++ b/apps/web/pages/documents/[id]/index.tsx
@@ -17,9 +17,12 @@ import { Document as PrismaDocument } from "@prisma/client";
import { Button, Breadcrumb } from "@documenso/ui";
import short from "short-uuid";
-const PDFViewer = dynamic(() => import("../../../components/pdf-viewer"), {
- ssr: false,
-});
+const PDFViewer = dynamic(
+ () => import("../../../components/editor/pdf-viewer"),
+ {
+ ssr: false,
+ }
+);
const DocumentsDetailPage: NextPageWithLayout = (props: any) => {
const router = useRouter();