feat: add bin tab to show soft deleted documents

This commit is contained in:
Ephraim Atta-Duncan
2024-05-30 19:51:28 +00:00
committed by Mythie
parent f31caaab08
commit c6393b7a9e
6 changed files with 125 additions and 47 deletions

View File

@@ -1,4 +1,4 @@
import { Bird, CheckCircle2 } from 'lucide-react';
import { Bird, CheckCircle2, Trash } from 'lucide-react';
import { match } from 'ts-pattern';
import { ExtendedDocumentStatus } from '@documenso/prisma/types/extended-document-status';
@@ -29,6 +29,11 @@ export const EmptyDocumentState = ({ status }: EmptyDocumentProps) => {
'You have not yet created or received any documents. To create a document please upload one.',
icon: Bird,
}))
.with(ExtendedDocumentStatus.BIN, () => ({
title: 'No documents in the bin',
message: "There are no documents in the bin. You can't restore any documents.",
icon: Trash,
}))
.otherwise(() => ({
title: 'Nothing to do',
message: