diff --git a/src/pages/Connections.tsx b/src/pages/Connections.tsx index 2ef9809..f34ca04 100644 --- a/src/pages/Connections.tsx +++ b/src/pages/Connections.tsx @@ -1,5 +1,6 @@ import { writeClipboard } from '@solid-primitives/clipboard' import { useI18n } from '@solid-primitives/i18n' +import { Key } from '@solid-primitives/keyed' import { makePersisted } from '@solid-primitives/storage' import { IconCircleX, @@ -321,20 +322,20 @@ export default () => {
- + type}> {(tab) => ( )} - +
@@ -438,64 +439,75 @@ export default () => { - - {(row) => ( - - - {(cell) => ( - { - e.preventDefault() + id}> + {(keyedRow) => { + const row = keyedRow() - const value = cell.renderValue() as null | string - value && writeClipboard(value).catch(() => {}) - }} - > - {cell.getIsGrouped() ? ( - + ) : cell.getIsAggregated() ? ( + flexRender( + cell.column.columnDef.aggregatedCell ?? + cell.column.columnDef.cell, + cell.getContext(), + ) + ) : cell.getIsPlaceholder() ? null : ( + flexRender( cell.column.columnDef.cell, cell.getContext(), - )} -
- -
({row.subRows.length})
- - ) : cell.getIsAggregated() ? ( - flexRender( - cell.column.columnDef.aggregatedCell ?? - cell.column.columnDef.cell, - cell.getContext(), - ) - ) : cell.getIsPlaceholder() ? null : ( - flexRender( - cell.column.columnDef.cell, - cell.getContext(), - ) - )} - - )} - - - )} - + ) + )} + + ) + }} + + + ) + }} +