Skip to content

Commit

Permalink
fixup! feat(TopTables): add links to tables
Browse files Browse the repository at this point in the history
  • Loading branch information
krosy1337 committed Oct 19, 2023
1 parent e30b753 commit 20a99c8
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,18 @@ export function TopTables({path}: TopTablesProps) {
{
name: 'Path',
sortable: false,
render: ({row}) => (
<LinkToSchemaObject
className={b('cell-with-popover-wrapper')}
path={row.Path as string}
location={location}
>
<Popover className={b('cell-with-popover')} content={row.Path}>
{row.Path}
</Popover>
</LinkToSchemaObject>
),
render: ({row}) =>
row.Path ? (
<LinkToSchemaObject
className={b('cell-with-popover-wrapper')}
path={String(row.Path)}
location={location}
>
<Popover className={b('cell-with-popover')} content={row.Path}>
{row.Path}
</Popover>
</LinkToSchemaObject>
) : null,
},
];

Expand Down

0 comments on commit 20a99c8

Please sign in to comment.