Merge pull request #726 from ronderksen/theme-tab-sub-components

Theme tab sub components
old
Javi Velasco 2016-08-24 20:37:03 +02:00 committed by GitHub
commit 0bd7eb8cb0
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ const factory = (Tab, TabContent) => {
return React.cloneElement(item, {
id: idx,
key: idx,
theme: this.props.theme,
active: this.props.index === idx,
onClick: event => {
this.handleHeaderClick(event);
@ -125,6 +126,7 @@ const factory = (Tab, TabContent) => {
if (contents && contents[activeIdx]) {
return React.cloneElement(contents[activeIdx], {
key: activeIdx,
theme: this.props.theme,
active: true,
tabIndex: activeIdx
});