Phase 0.3: migrate date formatting to date-fns
This commit is contained in:
@@ -8,6 +8,7 @@ import { useTranslation } from 'react-i18next';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Button } from '@/components/ui/Button';
|
||||
import { Card } from '@/components/ui/Card';
|
||||
import { formatDateShort } from '@/utils/date';
|
||||
import { Table, TableColumn } from '@/components/ui/Table';
|
||||
import { EmptyState } from '@/components/ui/EmptyState';
|
||||
import { Skeleton } from '@/components/ui/Skeleton';
|
||||
@@ -79,7 +80,7 @@ export function DmsTrashPage() {
|
||||
sortable: true,
|
||||
accessor: (file) => file.deleted_at || '',
|
||||
render: (file) => file.deleted_at
|
||||
? new Date(file.deleted_at).toLocaleDateString()
|
||||
? (formatDateShort(file.deleted_at) || '—')
|
||||
: '—',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user