@@ -29,30 +29,27 @@ export const Table = <TData,>({
29
29
} : TableProps < TData > ) => (
30
30
< UITable { ...tableProps } >
31
31
< 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
+ ) ) }
56
53
</ UITable . Header >
57
54
< UITable . Body >
58
55
{ table . getRowModel ( ) . rows . map ( ( row ) => {
0 commit comments