From fae614294dc9e2d1ea9387842f7554f8ed63061d Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Tue, 17 Feb 2015 15:09:18 +0100 Subject: [PATCH] fix warning when passing element to Dialog title allow using font icons etc. in Dialog title without warning in console --- docs/src/app/components/pages/components/dialog.jsx | 4 ++-- src/js/dialog.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/app/components/pages/components/dialog.jsx b/docs/src/app/components/pages/components/dialog.jsx index cf9085467f2406..bca9f7bedc8d80 100644 --- a/docs/src/app/components/pages/components/dialog.jsx +++ b/docs/src/app/components/pages/components/dialog.jsx @@ -57,9 +57,9 @@ var DialogPage = React.createClass({ }, { name: 'title', - type: 'string', + type: 'node', header: 'optional', - desc: 'The title string to display on the dialog.' + desc: 'The title to display on the dialog. Could be number, string, element or an array containing these types.' } ] }, diff --git a/src/js/dialog.jsx b/src/js/dialog.jsx index bebdaa17d6e94f..2f4281759633b3 100644 --- a/src/js/dialog.jsx +++ b/src/js/dialog.jsx @@ -7,7 +7,7 @@ var Dialog = React.createClass({ mixins: [Classable], propTypes: { - title: React.PropTypes.string + title: React.PropTypes.node }, render: function() {