Skip to content

Commit

Permalink
Allow passing JSX as dialog message
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierluigi Cau committed Apr 13, 2016
1 parent bf77da1 commit 78cdec9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/components/ConfirmDialoglComponent.jsx
Expand Up @@ -11,7 +11,10 @@ var ConfirmDialogComponent = React.createClass({
propTypes: {
data: React.PropTypes.shape({
actionButtonLabel: React.PropTypes.string.isRequired,
message: React.PropTypes.string.isRequired,
message: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.node
]).isRequired,
severity: React.PropTypes.string.isRequired,
title: React.PropTypes.string.isRequired
}).isRequired,
Expand Down

0 comments on commit 78cdec9

Please sign in to comment.