diff --git a/apps/web/src/app/(dashboard)/admin/documents/data-table.tsx b/apps/web/src/app/(dashboard)/admin/documents/data-table.tsx index 8bda26ef4..3b098c2fd 100644 --- a/apps/web/src/app/(dashboard)/admin/documents/data-table.tsx +++ b/apps/web/src/app/(dashboard)/admin/documents/data-table.tsx @@ -4,21 +4,18 @@ import { useTransition } from 'react'; import Link from 'next/link'; -import { Edit, Loader } from 'lucide-react'; +import { Loader } from 'lucide-react'; import { useUpdateSearchParams } from '@documenso/lib/client-only/hooks/use-update-search-params'; import { FindResultSet } from '@documenso/lib/types/find-result-set'; import { Document, User } from '@documenso/prisma/client'; import { Avatar, AvatarFallback } from '@documenso/ui/primitives/avatar'; -import { Button } from '@documenso/ui/primitives/button'; import { DataTable } from '@documenso/ui/primitives/data-table'; import { DataTablePagination } from '@documenso/ui/primitives/data-table-pagination'; import { DocumentStatus } from '~/components/formatter/document-status'; import { LocaleDate } from '~/components/formatter/locale-date'; -import { DataTableActionDropdown } from './data-table-action-dropdown'; - export type DocumentsDataTableProps = { results: FindResultSet< Document & { @@ -54,21 +51,7 @@ export const DocumentsDataTable = ({ results }: DocumentsDataTableProps) => { header: 'Title', accessorKey: 'title', cell: ({ row }) => { - return ( - - {row.original.title} - - ); + return
{row.original.title}
; }, }, { @@ -86,25 +69,16 @@ export const DocumentsDataTable = ({ results }: DocumentsDataTableProps) => { ); }, }, + { + header: 'Last updated', + accessorKey: 'updatedAt', + cell: ({ row }) => , + }, { header: 'Status', accessorKey: 'status', cell: ({ row }) => , }, - { - header: 'Actions', - cell: ({ row }) => ( -
- - -
- ), - }, ]} data={results.data} perPage={results.perPage} diff --git a/apps/web/src/app/(dashboard)/admin/users/[id]/page.tsx b/apps/web/src/app/(dashboard)/admin/users/[id]/page.tsx index 8c68f1270..e1535c16e 100644 --- a/apps/web/src/app/(dashboard)/admin/users/[id]/page.tsx +++ b/apps/web/src/app/(dashboard)/admin/users/[id]/page.tsx @@ -85,9 +85,7 @@ export default function UserPage({ params }: { params: { id: number } }) { name="name" render={({ field }) => ( - - Name - + Name @@ -100,9 +98,7 @@ export default function UserPage({ params }: { params: { id: number } }) { name="email" render={({ field }) => ( - - Email - + Email @@ -117,9 +113,7 @@ export default function UserPage({ params }: { params: { id: number } }) { render={({ field: { onChange } }) => (
- - Roles - + Roles