mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
🧹🚧DOC-97 DOC-19
This commit is contained in:
@ -7,18 +7,14 @@ import {
|
||||
CheckIcon,
|
||||
DocumentPlusIcon,
|
||||
EnvelopeIcon,
|
||||
EyeIcon,
|
||||
PlusIcon,
|
||||
SunIcon,
|
||||
TrashIcon,
|
||||
} from "@heroicons/react/24/outline";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/router";
|
||||
import { uploadDocument } from "@documenso/features";
|
||||
import { DocumentStatus } from "@prisma/client";
|
||||
import { Tooltip as ReactTooltip } from "react-tooltip";
|
||||
import { getDocumentsForUserFromToken } from "@documenso/lib/query";
|
||||
import { Button } from "@documenso/ui";
|
||||
import { Button, IconButton } from "@documenso/ui";
|
||||
|
||||
const DocumentsPage: NextPageWithLayout = (props: any) => {
|
||||
const router = useRouter();
|
||||
@ -44,7 +40,7 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
|
||||
}, []);
|
||||
|
||||
function showDocument(documentId: number) {
|
||||
router.push(`/documents/${documentId}`);
|
||||
router.push(`/documents/${documentId}/recipients`);
|
||||
}
|
||||
|
||||
return (
|
||||
@ -227,11 +223,11 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
|
||||
</p>
|
||||
</td>
|
||||
<td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
|
||||
<Link href={"/documents/" + document.id}>
|
||||
<TrashIcon
|
||||
<div>
|
||||
<IconButton
|
||||
icon={TrashIcon}
|
||||
className="flex-shrink-0 -ml-1 mr-3 h-6 w-6 inline text-neon"
|
||||
aria-hidden="true"
|
||||
onClick={(event) => {
|
||||
onClick={(event: any) => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
if (
|
||||
@ -259,9 +255,9 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
|
||||
});
|
||||
}
|
||||
}}
|
||||
/>
|
||||
></IconButton>
|
||||
<span className="sr-only">, {document.name}</span>
|
||||
</Link>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user