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,6 +1,6 @@
import type { HTMLAttributes } from 'react';
import { CheckCircle2, Clock, File } from 'lucide-react';
import { CheckCircle2, Clock, File, TrashIcon } from 'lucide-react';
import type { LucideIcon } from 'lucide-react/dist/lucide-react';
import type { ExtendedDocumentStatus } from '@documenso/prisma/types/extended-document-status';
@ -38,6 +38,11 @@ export const FRIENDLY_STATUS_MAP: Record<ExtendedDocumentStatus, FriendlyStatus>
label: 'All',
color: 'text-muted-foreground',
},
BIN: {
label: 'Bin',
icon: TrashIcon,
color: 'text-red-500 dark:text-red-200',
},
};
export type DocumentStatusProps = HTMLAttributes<HTMLSpanElement> & {