rename function
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
'use client'
|
||||
|
||||
import { useState, useMemo, useCallback } from 'react';
|
||||
import { useState, useMemo } from 'react';
|
||||
import {
|
||||
useReactTable,
|
||||
getCoreRowModel,
|
||||
|
||||
@@ -91,33 +91,33 @@ export function ViolationsMyComplaintsTable() {
|
||||
</div>
|
||||
),
|
||||
},
|
||||
/* {
|
||||
accessorKey: 'createdAt',
|
||||
header: ({ column }) => (
|
||||
<div className="column">
|
||||
<span>{t('date-of-creation')}</span>
|
||||
<button
|
||||
onClick={() => column.toggleSorting(column.getIsSorted() === 'asc')}
|
||||
className="sort-button hidden"
|
||||
>
|
||||
{column.getIsSorted() === 'asc' ? (
|
||||
<IconArrowUp />
|
||||
) : column.getIsSorted() === 'desc' ? (
|
||||
<IconArrowDown />
|
||||
) : (
|
||||
<IconFilter />
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
),
|
||||
cell: ({ row }) => (
|
||||
<div className="text-center table-item">
|
||||
{formatDate(new Date(row.original.created_at).getTime())}
|
||||
<br />
|
||||
{formatDateTime(new Date(row.original.created_at).getTime())}
|
||||
</div>
|
||||
),
|
||||
}, */
|
||||
/* {
|
||||
accessorKey: 'createdAt',
|
||||
header: ({ column }) => (
|
||||
<div className="column">
|
||||
<span>{t('date-of-creation')}</span>
|
||||
<button
|
||||
onClick={() => column.toggleSorting(column.getIsSorted() === 'asc')}
|
||||
className="sort-button hidden"
|
||||
>
|
||||
{column.getIsSorted() === 'asc' ? (
|
||||
<IconArrowUp />
|
||||
) : column.getIsSorted() === 'desc' ? (
|
||||
<IconArrowDown />
|
||||
) : (
|
||||
<IconFilter />
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
),
|
||||
cell: ({ row }) => (
|
||||
<div className="text-center table-item">
|
||||
{formatDate(new Date(row.original.created_at).getTime())}
|
||||
<br />
|
||||
{formatDateTime(new Date(row.original.created_at).getTime())}
|
||||
</div>
|
||||
),
|
||||
}, */
|
||||
{
|
||||
accessorKey: 'updatedAt',
|
||||
header: ({ column }) => (
|
||||
|
||||
Reference in New Issue
Block a user