From e5aab20ba9f348341ff92d9c3a48ff2b958df0f3 Mon Sep 17 00:00:00 2001 From: Michael Anderson Date: Mon, 31 Oct 2016 14:07:45 -0600 Subject: [PATCH] Allows a react element for title --- mixins/WidgetMixin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mixins/WidgetMixin.js b/mixins/WidgetMixin.js index 9face15..d62ae1d 100644 --- a/mixins/WidgetMixin.js +++ b/mixins/WidgetMixin.js @@ -16,7 +16,10 @@ module.exports = { propTypes: { name: React.PropTypes.string, - title: React.PropTypes.string, + title: React.PropTypes.oneOf([ + React.PropTypes.string, + React.PropTypes.element, + ]), formName: React.PropTypes.string, // image: , widgetStyles: React.PropTypes.object,