mirror of
https://github.com/documenso/documenso.git
synced 2025-11-26 06:32:08 +10:00
send sign request, sign status
This commit is contained in:
29
apps/web/pages/documents/[id]/index.tsx
Normal file
29
apps/web/pages/documents/[id]/index.tsx
Normal file
@ -0,0 +1,29 @@
|
||||
import { ReactElement, useEffect } from "react";
|
||||
import Layout from "../../../components/layout";
|
||||
import { NextPageWithLayout } from "../../_app";
|
||||
import { Document, Page, pdfjs } from "react-pdf";
|
||||
import dynamic from "next/dynamic";
|
||||
import { useRouter } from "next/router";
|
||||
import { NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib";
|
||||
|
||||
const PDFViewer = dynamic(() => import("../../../components/pdf-viewer"), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const DocumentsDetailPage: NextPageWithLayout = () => {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<div className="mx-auto w-fit">
|
||||
<PDFViewer
|
||||
pdfUrl={`${NEXT_PUBLIC_WEBAPP_URL}/api/documents/${router.query.id}`}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
DocumentsDetailPage.getLayout = function getLayout(page: ReactElement) {
|
||||
return <Layout>{page}</Layout>;
|
||||
};
|
||||
|
||||
export default DocumentsDetailPage;
|
||||
22
apps/web/pages/documents/[id]/sign.tsx
Normal file
22
apps/web/pages/documents/[id]/sign.tsx
Normal file
@ -0,0 +1,22 @@
|
||||
import Head from "next/head";
|
||||
import { ReactElement } from "react";
|
||||
import Layout from "../../../components/layout";
|
||||
import Logo from "../../../components/logo";
|
||||
import { NextPageWithLayout } from "../../_app";
|
||||
|
||||
const SignPage: NextPageWithLayout = () => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>Sign | Documenso</title>
|
||||
</Head>
|
||||
Hello, please sign at the dotted line.
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
SignPage.getLayout = function getLayout(page: ReactElement) {
|
||||
return <Layout>{page}</Layout>;
|
||||
};
|
||||
|
||||
export default SignPage;
|
||||
Reference in New Issue
Block a user