Skip to content

Commit 6c8b237

Browse files
authored
fix: change propTypes for BaseTable.components (#274)
1 parent 2b2a85d commit 6c8b237

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## NEXT VERSION
44

5+
- fix: change propTypes for `BaseTable.components`
6+
57
## v1.12.0 (2020-10-11)
68

79
- feat: add the ability to pass function in `estimatedRowHeight` to determine the initial height of rows

src/BaseTable.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,10 +1306,10 @@ BaseTable.propTypes = {
13061306
* A object for the custom components, like `ExpandIcon` and `SortIndicator`
13071307
*/
13081308
components: PropTypes.shape({
1309-
TableCell: PropTypes.func,
1310-
TableHeaderCell: PropTypes.func,
1311-
ExpandIcon: PropTypes.func,
1312-
SortIndicator: PropTypes.func,
1309+
TableCell: PropTypes.elementType,
1310+
TableHeaderCell: PropTypes.elementType,
1311+
ExpandIcon: PropTypes.elementType,
1312+
SortIndicator: PropTypes.elementType,
13131313
}),
13141314
};
13151315

0 commit comments

Comments
 (0)