update insights

This commit is contained in:
2025-11-25 16:00:08 -03:00
parent 0278fca9f2
commit 93d330c8df
11 changed files with 65 additions and 15 deletions

View File

@@ -1,7 +1,6 @@
'use client'
import { type ColumnDef } from '@tanstack/react-table'
import { EllipsisVerticalIcon } from 'lucide-react'
import { Button } from '@repo/ui/components/ui/button'
@@ -29,7 +28,8 @@ export const columns: ColumnDef<Org>[] = [
{
id: 'select',
header: DataTableColumnHeaderSelect,
cell: DataTableColumnSelect
cell: DataTableColumnSelect,
meta: { className: 'w-8' }
},
{
header: 'Empresa',
@@ -65,8 +65,9 @@ export const columns: ColumnDef<Org>[] = [
cell: DataTableColumnDatetime
},
{
id: 'actions',
cell: ActionMenu
id: 'action',
cell: ActionMenu,
meta: { className: 'w-12' }
}
]

View File

@@ -48,6 +48,7 @@ export default function Route({ loaderData: { data } }: Route.ComponentProps) {
return (
<DataTable
sort={[{ id: 'created_at', desc: true }]}
columnPinning={{ left: ['select'], right: ['action'] }}
columns={columns}
data={hits as Org[]}
pageIndex={page - 1}