rm unused component

This commit is contained in:
Jordi Enric committed 2024-05-02 19:35:25 +02:00
1 parent d115bb8a8d
commit 11c19fd309
1 file changed
-35
@@ -1,35 +0,0 @@
import { Column } from 'react-data-grid'
import { LogData } from '..'
import {
RowLayout,
SeverityFormatter,
TextFormatter,
TimestampLocalFormatter,
} from '../LogsFormatters'
import { defaultRenderCell } from './DefaultPreviewColumnRenderer'
export const WarehouseColumnRenderer: Column<LogData>[] = [
{
name: 'warehouse',
key: 'warehouse',
renderCell: (props) => {
if (!props.row.level) {
return defaultRenderCell(props)
}
return (
<RowLayout>
<TimestampLocalFormatter value={props.row.timestamp!} />
{props.row.level && <SeverityFormatter value={props.row.level as string} />}
<TextFormatter
className="w-full"
value={`${props.row.path ? props.row.path + ' | ' : ''}${
// not all log events have metadata.msg
(props.row.msg as string)?.trim() || props.row.event_message
}`}
/>
</RowLayout>
)
},
},
]