pdf viewer to editor

This commit is contained in:
Timur Ercan
2023-02-13 16:11:53 +01:00
parent d75c7bef20
commit 765c8c1ea6
2 changed files with 7 additions and 4 deletions

View File

@ -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");

View File

@ -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();