From 03bdcf265a0a76b0f816a90b775a75e97c0c907b Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 18 Mar 2016 11:20:00 +0000 Subject: [PATCH] fix proptypes on dialogs --- src/components/views/dialogs/ErrorDialog.js | 4 ++++ src/components/views/dialogs/QuestionDialog.js | 5 ++++- src/components/views/dialogs/TextInputDialog.js | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/views/dialogs/ErrorDialog.js b/src/components/views/dialogs/ErrorDialog.js index d06cf2de84..c3f4ca6a55 100644 --- a/src/components/views/dialogs/ErrorDialog.js +++ b/src/components/views/dialogs/ErrorDialog.js @@ -31,6 +31,10 @@ module.exports = React.createClass({ displayName: 'ErrorDialog', propTypes: { title: React.PropTypes.string, + description: React.PropTypes.oneOfType([ + React.PropTypes.element, + React.PropTypes.string, + ]), button: React.PropTypes.string, focus: React.PropTypes.bool, onFinished: React.PropTypes.func.isRequired, diff --git a/src/components/views/dialogs/QuestionDialog.js b/src/components/views/dialogs/QuestionDialog.js index 20f06b6719..88620e3495 100644 --- a/src/components/views/dialogs/QuestionDialog.js +++ b/src/components/views/dialogs/QuestionDialog.js @@ -20,7 +20,10 @@ module.exports = React.createClass({ displayName: 'QuestionDialog', propTypes: { title: React.PropTypes.string, - description: React.PropTypes.object, + description: React.PropTypes.oneOfType([ + React.PropTypes.element, + React.PropTypes.string, + ]), button: React.PropTypes.string, focus: React.PropTypes.bool, onFinished: React.PropTypes.func.isRequired, diff --git a/src/components/views/dialogs/TextInputDialog.js b/src/components/views/dialogs/TextInputDialog.js index 3cda852449..d81ae98718 100644 --- a/src/components/views/dialogs/TextInputDialog.js +++ b/src/components/views/dialogs/TextInputDialog.js @@ -20,7 +20,10 @@ module.exports = React.createClass({ displayName: 'TextInputDialog', propTypes: { title: React.PropTypes.string, - description: React.PropTypes.string, + description: React.PropTypes.oneOfType([ + React.PropTypes.element, + React.PropTypes.string, + ]), value: React.PropTypes.string, button: React.PropTypes.string, focus: React.PropTypes.bool,