diff --git a/src/ui/EditableTable.tsx b/src/ui/EditableTable.tsx index d12beb4..45f7afd 100644 --- a/src/ui/EditableTable.tsx +++ b/src/ui/EditableTable.tsx @@ -1,4 +1,5 @@ import type { ReactNode } from 'react' +import { Table, TableBody, TableHeader } from '@/components/ui/table' import styles from './EditableTable.module.css' /* @@ -24,12 +25,16 @@ export function EditableTable({ children: ReactNode className?: string }) { + /* The table is ReUI's `ui/table` (its container scrolls sideways on a narrow + screen). Not a `data-grid`: the rows are inputs and selects edited in place, + which the grid's sorting, paging and selection have nothing to do with. The + cells stay native `th`/`td` that the callers lay out. */ return ( - - +
+ {header} - - {children} -
+ + {children} + ) }