From 04911bdf5ba3a25af78ab5f9b435de3569457d25 Mon Sep 17 00:00:00 2001 From: Alex Windett Date: Fri, 3 Mar 2017 14:08:11 +0000 Subject: [PATCH] allowing tab title to recieve string or React element --- ui/src/components/tabs/tab/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/components/tabs/tab/index.js b/ui/src/components/tabs/tab/index.js index 0e176a85..681b008b 100644 --- a/ui/src/components/tabs/tab/index.js +++ b/ui/src/components/tabs/tab/index.js @@ -109,7 +109,10 @@ Tab.propTypes = { id: React.PropTypes.string, name: React.PropTypes.string, style: React.PropTypes.object, - title: React.PropTypes.string + title: React.PropTypes.oneOfType([ + React.PropTypes.string, + React.PropTypes.node + ]) }; export default Baseline(