Skip to content

Commit 553c862

Browse files
committed
Fix as prop type
1 parent ca1a38e commit 553c862

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/propTypes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ Object.keys(iStates).forEach(iState => {
1515
});
1616

1717
const propTypes = {
18-
as: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.element])
19-
.isRequired,
18+
as: PropTypes.any.isRequired,
2019
children: PropTypes.node,
2120
normal: PropTypes.oneOfType([
2221
PropTypes.object,

0 commit comments

Comments
 (0)