site updates

This commit is contained in:
Henry Dollman
2024-07-10 16:09:08 -04:00
parent 307218d001
commit 96e4c3b9ea
7 changed files with 91 additions and 36 deletions

View File

@@ -239,7 +239,17 @@ export function DataTable() {
<TableBody>
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
<TableRow key={row.original.id} data-state={row.getIsSelected() && 'selected'}>
<TableRow
key={row.original.id}
data-state={row.getIsSelected() && 'selected'}
className="cursor-pointer"
onClick={(e) => {
const target = e.target as HTMLElement
if (target.tagName !== 'BUTTON' && !target.hasAttribute('role')) {
navigate(`/server/${row.original.name}`)
}
}}
>
{row.getVisibleCells().map((cell) => (
<TableCell
key={cell.id}