Skip to content

Commit 8dbe04c

Browse files
committed
fix(toasts): fix prop-types warning about multiple children
1 parent bc5da04 commit 8dbe04c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/toasts/ToastsContainer.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ToastsContainer.defaultProps = {
2626
};
2727

2828
ToastsContainer.propTypes = {
29-
children: PropTypes.element,
29+
children: PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]),
3030
noStyle: PropTypes.bool,
3131
unique: PropTypes.bool,
3232
};

0 commit comments

Comments
 (0)