bug: onClick cursor is added and display date is converted to minutes and 12hr format

This commit is contained in:
Palash gupta 2022-02-23 08:22:23 +05:30
parent 05c79b7119
commit 92cf617a53
No known key found for this signature in database
GPG Key ID: 8FD05AE6F9150AD6

View File

@ -43,7 +43,7 @@ const TraceTable = ({ getSpansAggregate }: TraceProps) => {
key: 'timestamp', key: 'timestamp',
render: (value: TableType['timestamp']) => { render: (value: TableType['timestamp']) => {
const day = dayjs(value); const day = dayjs(value);
return <div>{day.format('DD/MM/YYYY HH:MM:ss A')}</div>; return <div>{day.format('DD/MM/YYYY hh:mm:ss A')}</div>;
}, },
sorter: (a, b) => dayjs(a.timestamp).diff(dayjs(b.timestamp)), sorter: (a, b) => dayjs(a.timestamp).diff(dayjs(b.timestamp)),
}, },
@ -129,6 +129,9 @@ const TraceTable = ({ getSpansAggregate }: TraceProps) => {
})} })}
size="middle" size="middle"
rowKey={'timestamp'} rowKey={'timestamp'}
style={{
cursor: 'pointer',
}}
pagination={{ pagination={{
current: spansAggregate.currentPage, current: spansAggregate.currentPage,
pageSize: spansAggregate.pageSize, pageSize: spansAggregate.pageSize,