Add renderer for last played date column

This commit is contained in:
jeffvli 2023-01-07 14:30:17 -08:00
parent 6bfebd2923
commit f879171398

View file

@ -170,7 +170,9 @@ const tableColumns: { [key: string]: ColDef } = {
width: 100,
},
lastPlayedAt: {
cellRenderer: (params: ICellRendererParams) => GenericCell(params, { position: 'center' }),
colId: TableColumn.LAST_PLAYED,
headerComponent: (params: IHeaderParams) => GenericTableHeader(params, { position: 'center' }),
headerName: 'Last Played',
valueFormatter: (params: ValueFormatterParams) =>
params.value ? dayjs(params.value).fromNow() : '',