From 8f78189fae3d6fc998c9635ea559fbc5c08dd7d2 Mon Sep 17 00:00:00 2001
From: Kevin Ashworth <kevinashworth@yahoo.com>
Date: Sun, 30 May 2021 10:43:45 -0700
Subject: [PATCH] Add TableHeaderRow to list of customizable components

---
 src/BaseTable.js | 4 ++++
 1 file changed, 4 insertions(+)

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,
   }),