1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

allowing tab title to recieve string or React element

This commit is contained in:
Alex Windett 2017-03-03 14:08:11 +00:00
parent 677c80421b
commit 04911bdf5b

View File

@ -109,7 +109,10 @@ Tab.propTypes = {
id: React.PropTypes.string, id: React.PropTypes.string,
name: React.PropTypes.string, name: React.PropTypes.string,
style: React.PropTypes.object, style: React.PropTypes.object,
title: React.PropTypes.string title: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.node
])
}; };
export default Baseline( export default Baseline(