Forward theme prop from Tabs to TabContent

The `Tabs` component takes a `theme`, but was not forwarding it on to
its internal `TabContent` component, so it wasn’t possible to theme the
`tabs` or `active` classes.
old
Randy Coulman 2016-07-08 14:36:55 -07:00
parent de532adea5
commit 8c20848fe8
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);