Skip to content

Commit

Permalink
Notification banner: Allow the message parameter to be a node or a st…
Browse files Browse the repository at this point in the history
…ring. (#2391)

* Issue 2105: Provide infinite scrolling support for moreAbove in the table.

Signed-off-by: Robert M. Gary <robert.m.gary@hpe.com>

* Adjust spacing

* Notification banner: Allow the message parameter to be a node or a string.
  • Loading branch information
RobertGary1 authored and alansouzati committed Oct 24, 2018
1 parent 8181f35 commit ee11b22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/components/Notification.js
Expand Up @@ -213,7 +213,10 @@ Notification.propTypes = {
PropTypes.bool
]),
context: PropTypes.node,
message: PropTypes.string.isRequired,
message: PropTypes.oneOfType([
PropTypes.node,
PropTypes.string
]).isRequired,
onClose: PropTypes.func,
percentComplete: PropTypes.number,
size: PropTypes.oneOf(['small', 'medium', 'large']),
Expand Down

0 comments on commit ee11b22

Please sign in to comment.