mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 07:39:07 +03:00
* Switch all top-level imports for ui-patterns components to use specific components when importing. * Remove the @ui-patterns shorthand since it works exactly the same without the @. * More import fixes. * Fix the ui-patterns tests.
22 lines
650 B
TypeScript
22 lines
650 B
TypeScript
import { Column, RenderCellProps } from 'react-data-grid'
|
|
import type { LogData } from '../Logs.types'
|
|
import { RowLayout, TextFormatter } from '../LogsFormatters'
|
|
import { TimestampInfo } from 'ui-patterns/TimestampInfo'
|
|
|
|
export const defaultRenderCell = (props: RenderCellProps<LogData, unknown>) => (
|
|
<RowLayout>
|
|
<TimestampInfo value={props.row.timestamp!} />
|
|
<TextFormatter className="w-full" value={props.row.event_message} />
|
|
</RowLayout>
|
|
)
|
|
|
|
const columns: Column<LogData>[] = [
|
|
{
|
|
name: 'default-preview-first-column',
|
|
key: 'default-preview-first-column',
|
|
renderCell: defaultRenderCell,
|
|
},
|
|
]
|
|
|
|
export default columns
|