mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
🚸✨ DOC-104
This commit is contained in:
@ -3,10 +3,12 @@ import Layout from "../components/layout";
|
|||||||
import type { NextPageWithLayout } from "./_app";
|
import type { NextPageWithLayout } from "./_app";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import {
|
import {
|
||||||
|
ArrowDownTrayIcon,
|
||||||
CheckBadgeIcon,
|
CheckBadgeIcon,
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
DocumentPlusIcon,
|
DocumentPlusIcon,
|
||||||
EnvelopeIcon,
|
EnvelopeIcon,
|
||||||
|
PencilSquareIcon,
|
||||||
PlusIcon,
|
PlusIcon,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
} from "@heroicons/react/24/outline";
|
} from "@heroicons/react/24/outline";
|
||||||
@ -224,9 +226,31 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
|
|||||||
</td>
|
</td>
|
||||||
<td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
|
<td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
|
||||||
<div>
|
<div>
|
||||||
|
<IconButton
|
||||||
|
icon={PencilSquareIcon}
|
||||||
|
className="mr-2"
|
||||||
|
onClick={(event: any) => {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
router.push("/documents/" + document.id);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Edit
|
||||||
|
</IconButton>
|
||||||
|
<IconButton
|
||||||
|
icon={ArrowDownTrayIcon}
|
||||||
|
className="mr-2"
|
||||||
|
onClick={(event: any) => {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
router.push("/api/documents/" + document.id);
|
||||||
|
}}
|
||||||
|
download
|
||||||
|
>
|
||||||
|
Download
|
||||||
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={TrashIcon}
|
icon={TrashIcon}
|
||||||
className="flex-shrink-0 -ml-1 mr-3 h-6 w-6 inline text-neon"
|
|
||||||
onClick={(event: any) => {
|
onClick={(event: any) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import Layout from "../../../components/layout";
|
|||||||
import { NextPageWithLayout } from "../../_app";
|
import { NextPageWithLayout } from "../../_app";
|
||||||
import { classNames, NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib";
|
import { classNames, NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib";
|
||||||
import {
|
import {
|
||||||
|
ArrowDownTrayIcon,
|
||||||
CheckBadgeIcon,
|
CheckBadgeIcon,
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
EnvelopeIcon,
|
EnvelopeIcon,
|
||||||
@ -63,6 +64,14 @@ const RecipientsPage: NextPageWithLayout = (props: any) => {
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-4 flex flex-shrink-0 md:mt-0 md:ml-4">
|
<div className="mt-4 flex flex-shrink-0 md:mt-0 md:ml-4">
|
||||||
|
<Button
|
||||||
|
icon={ArrowDownTrayIcon}
|
||||||
|
color="secondary"
|
||||||
|
className="mr-2"
|
||||||
|
href={"/api/documents/" + props.document.id}
|
||||||
|
>
|
||||||
|
Download
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
icon={PencilSquareIcon}
|
icon={PencilSquareIcon}
|
||||||
color="secondary"
|
color="secondary"
|
||||||
|
|||||||
Reference in New Issue
Block a user