mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 23:59:08 +03:00
rm unused component
This commit is contained in:
1 parent
d115bb8a8d
commit
11c19fd309
1 file changed
-35
-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>
|
||||
)
|
||||
},
|
||||
},
|
||||
]
|
||||
Reference in new issue
Block a user