Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit b294333

Browse files
committed
Fixng propTypes on <Errors /> component
1 parent 19798d7 commit b294333

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/components/errors-component.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,18 @@ Errors.propTypes = {
108108

109109
// Provided props
110110
model: PropTypes.string.isRequired,
111-
messages: PropTypes.objectOf(PropTypes.oneOf([
111+
messages: PropTypes.objectOf(PropTypes.oneOfType([
112112
PropTypes.string,
113113
PropTypes.func,
114114
PropTypes.bool,
115115
])),
116116
show: PropTypes.any,
117-
wrapper: PropTypes.string,
118-
component: PropTypes.oneOf([
117+
wrapper: PropTypes.oneOfType([
118+
PropTypes.string,
119+
PropTypes.func,
120+
PropTypes.element,
121+
]),
122+
component: PropTypes.oneOfType([
119123
PropTypes.string,
120124
PropTypes.func,
121125
PropTypes.element,

0 commit comments

Comments
 (0)