@@ -29,30 +29,27 @@ export const Table = <TData,>({
2929} : TableProps < TData > ) => (
3030 < UITable { ...tableProps } >
3131 < UITable . Header >
32- { table . getHeaderGroups ( ) . map ( ( headerGroup ) => {
33- console . log ( headerGroup )
34- return (
35- < UITable . HeaderRow key = { headerGroup . id } >
36- { headerGroup . headers . map ( ( header ) => (
37- < UITable . HeadCell
38- key = { header . id }
39- className = { header . column . columnDef . meta ?. thClassName }
40- colSpan = { header . colSpan }
41- >
42- {
43- // Placeholder concept is for when grouped columns are
44- // combined with regular columns. The regular column only
45- // needs one entry in the stack of header cells, so the others
46- // have isPlacholder=true. See sleds table for an example.
47- header . isPlaceholder
48- ? null
49- : flexRender ( header . column . columnDef . header , header . getContext ( ) )
50- }
51- </ UITable . HeadCell >
52- ) ) }
53- </ UITable . HeaderRow >
54- )
55- } ) }
32+ { table . getHeaderGroups ( ) . map ( ( headerGroup ) => (
33+ < UITable . HeaderRow key = { headerGroup . id } >
34+ { headerGroup . headers . map ( ( header ) => (
35+ < UITable . HeadCell
36+ key = { header . id }
37+ className = { header . column . columnDef . meta ?. thClassName }
38+ colSpan = { header . colSpan }
39+ >
40+ {
41+ // Placeholder concept is for when grouped columns are
42+ // combined with regular columns. The regular column only
43+ // needs one entry in the stack of header cells, so the others
44+ // have isPlacholder=true. See sleds table for an example.
45+ header . isPlaceholder
46+ ? null
47+ : flexRender ( header . column . columnDef . header , header . getContext ( ) )
48+ }
49+ </ UITable . HeadCell >
50+ ) ) }
51+ </ UITable . HeaderRow >
52+ ) ) }
5653 </ UITable . Header >
5754 < UITable . Body >
5855 { table . getRowModel ( ) . rows . map ( ( row ) => {
0 commit comments