mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
25 lines
637 B
TypeScript
25 lines
637 B
TypeScript
import {
|
|
RowLayout,
|
|
SeverityFormatter,
|
|
TextFormatter,
|
|
TimestampLocalFormatter,
|
|
} from '../LogsFormatters'
|
|
import DefaultPreviewColumnRenderer from './DefaultPreviewColumnRenderer'
|
|
|
|
export default [
|
|
{
|
|
formatter: (data: any) => {
|
|
if (!data.row.error_severity) {
|
|
return DefaultPreviewColumnRenderer[0].formatter(data)
|
|
}
|
|
return (
|
|
<RowLayout>
|
|
<TimestampLocalFormatter value={data.row.timestamp!} />
|
|
<SeverityFormatter value={data.row.error_severity} />
|
|
<TextFormatter className="w-full" value={data.row.event_message} />
|
|
</RowLayout>
|
|
)
|
|
},
|
|
},
|
|
]
|