Skip to content

Commit

Permalink
Framework: Fix warning in AcceptDialog due to a complex message being…
Browse files Browse the repository at this point in the history
… given by `this.translate`
  • Loading branch information
Tug committed Feb 13, 2016
1 parent fcaf822 commit 5d6186a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/lib/accept/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ module.exports = React.createClass( {
displayName: 'AcceptDialog',

propTypes: {
// message can either be a string, an element or an array of string/elements (returned by `this.translate`)
message: React.PropTypes.oneOfType( [
React.PropTypes.string,
React.PropTypes.element
React.PropTypes.element,
React.PropTypes.array,
] ).isRequired,
onClose: React.PropTypes.func.isRequired,
confirmButtonText: React.PropTypes.string,
Expand Down

0 comments on commit 5d6186a

Please sign in to comment.