diff --git a/apps/web/feactures/training/components/training-tables/columns.tsx b/apps/web/feactures/training/components/training-tables/columns.tsx index 582c945..5d84779 100644 --- a/apps/web/feactures/training/components/training-tables/columns.tsx +++ b/apps/web/feactures/training/components/training-tables/columns.tsx @@ -22,18 +22,9 @@ export function columns({ apiUrl }: ColumnsProps): ColumnDef[] { accessorKey: 'ospType', header: 'Tipo', }, - { - accessorKey: 'created_at', - header: 'Fecha de creación', - cell: ({ row }) => { - // console.log(row.getValue('created_at')); - const date = row.getValue('created_at') as string; - return date ? new Date(date).toLocaleString() : 'N/A'; - }, - }, { accessorKey: 'currentStatus', - header: 'Estatus', + header: 'Estatus OSP', cell: ({ row }) => { const status = row.getValue('currentStatus') as string; return ( @@ -43,6 +34,16 @@ export function columns({ apiUrl }: ColumnsProps): ColumnDef[] { ); }, }, + { + accessorKey: 'created_at', + header: 'Fecha de creación', + cell: ({ row }) => { + // console.log(row.getValue('created_at')); + const date = row.getValue('created_at') as string; + return date ? new Date(date).toLocaleString() : 'N/A'; + }, + }, + { accessorKey: 'visitDate', header: 'Fecha Visita', @@ -51,6 +52,18 @@ export function columns({ apiUrl }: ColumnsProps): ColumnDef[] { return date ? new Date(date).toLocaleString() : 'N/A'; }, }, + { + accessorKey: 'surveyStatus', + header: '', + cell: ({ row }) => { + const status = row.getValue('surveyStatus') as string; + return ( + + {status} + + ); + }, + }, { id: 'actions', header: 'Acciones',