diff --git a/src/BaseTable.js b/src/BaseTable.js index 93f574fd..be276f14 100644 --- a/src/BaseTable.js +++ b/src/BaseTable.js @@ -43,6 +43,7 @@ const getContainerStyle = (width, maxWidth, height) => ({ const DEFAULT_COMPONENTS = { TableCell, TableHeaderCell, + TableHeaderRow, ExpandIcon, SortIndicator, }; @@ -427,6 +428,8 @@ class BaseTable extends React.PureComponent { [this._prefixClass('header-row--customized')]: headerRenderer, }); + const TableHeaderRow = this._getComponent('TableHeaderRow'); + const headerProps = { ...extraProps, role: 'row', @@ -1308,6 +1311,7 @@ BaseTable.propTypes = { components: PropTypes.shape({ TableCell: PropTypes.elementType, TableHeaderCell: PropTypes.elementType, + TableHeaderRow: PropTypes.elementType, ExpandIcon: PropTypes.elementType, SortIndicator: PropTypes.elementType, }),