mirror of https://github.com/portainer/portainer
13 lines
322 B
TypeScript
13 lines
322 B
TypeScript
import { Column } from 'react-table';
|
|
|
|
import { NomadEvent } from '@/react/nomad/types';
|
|
import { isoDate } from '@/portainer/filters/filters';
|
|
|
|
export const date: Column<NomadEvent> = {
|
|
Header: 'Date',
|
|
accessor: (row) => (row.Date ? isoDate(row.Date) : '-'),
|
|
id: 'date',
|
|
disableFilters: true,
|
|
canHide: true,
|
|
};
|