diff --git a/src/components/Table/Table.tsx b/src/components/Table/Table.tsx index f5cc18c22d..a462982e3e 100644 --- a/src/components/Table/Table.tsx +++ b/src/components/Table/Table.tsx @@ -336,29 +336,6 @@ export class Table> extends Rea ); } - private renderColgroup() { - const {columns} = this.props; - const {columnsStyles} = this.state; - - if (!columnsStyles.length) { - return null; - } - - return ( - - {columnsStyles.flatMap(({width}, index) => { - const key = columns[index]?.id; - - if (!key) { - return []; - } - - return ; - })} - - ); - } - private renderHead() { const {columns, edgePadding, wordWrap} = this.props; const {columnsStyles} = this.state; @@ -374,7 +351,7 @@ export class Table> extends Rea > extends Rea private renderTable() { return ( - {this.renderColgroup()} {this.renderHead()} {this.renderBody()}
@@ -469,7 +445,7 @@ export class Table> extends Rea return ( > extends Rea return style; } - private getCellStyles( - columnStyles: React.CSSProperties | undefined, - ): React.CSSProperties | undefined { - const {width: _width, ...styles} = columnStyles || {}; - - return Object.keys(styles).length ? styles : undefined; - } - private handleScrollContainerMouseenter = () => { this.setState({activeScrollElement: 'scrollContainer'}); };