chore: self-review

This commit is contained in:
pit
2023-10-10 13:50:50 +03:00
committed by Mythie
parent 90225574de
commit 0321f8505d
4 changed files with 17 additions and 74 deletions

View File

@ -19,7 +19,6 @@ import { LocaleDate } from '~/components/formatter/locale-date';
import { DataTableActionButton } from './data-table-action-button';
import { DataTableActionDropdown } from './data-table-action-dropdown';
import { DataTableTitle } from './data-table-title';
export type DocumentsDataTableProps = {
results: FindResultSet<
@ -60,7 +59,18 @@ export const DocumentsDataTable = ({ results }: DocumentsDataTableProps) => {
},
{
header: 'Title',
cell: ({ row }) => <DataTableTitle row={row.original} />,
accessorKey: 'title',
cell: ({ row }) => {
return (
<Link
title={row.original.title}
className="block max-w-[10rem] truncate font-medium hover:underline md:max-w-[20rem]"
href={`/documents/${row.original.id}`}
>
{row.original.title}
</Link>
);
},
},
{
header: 'Owner',