From 63457ac53aaefb348cca9a3149383196ea432757 Mon Sep 17 00:00:00 2001 From: Tomas Trescak Date: Sun, 19 Feb 2017 11:48:44 +1100 Subject: [PATCH] Allow title to be compound object I have titles that are not strings, but rather more complex renders (e.g. Example). This allows to put badges or labels in the tab title. --- lib/react-simpletabs.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/react-simpletabs.jsx b/lib/react-simpletabs.jsx index 6370286..4593792 100644 --- a/lib/react-simpletabs.jsx +++ b/lib/react-simpletabs.jsx @@ -124,7 +124,7 @@ var Tabs = React.createClass({ Tabs.Panel = React.createClass({ displayName: 'Panel', propTypes: { - title: React.PropTypes.string.isRequired, + title: React.PropTypes.any.isRequired, children: React.PropTypes.oneOfType([ React.PropTypes.array, React.PropTypes.element