Merge pull request #622 from randycoulman/tab-content-theme

Forward theme prop from Tabs to TabContent
old
Javi Velasco 2016-07-10 12:54:13 +02:00 committed by GitHub
commit 5028e6d3e2
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ const factory = (Tab, TabContent) => {
if (item.type === Tab) {
headers.push(item);
if (item.props.children) {
contents.push(<TabContent children={item.props.children} />);
contents.push(<TabContent children={item.props.children} theme={this.props.theme} />);
}
} else if (item.type === TabContent) {
contents.push(item);