Skip to content

Commit 354f189

Browse files
author
jonisaa
committed
Start to play with tabs
1 parent 3937df4 commit 354f189

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/groupComponents/Group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Group extends Component {
9292
let content = this.getContent();
9393

9494
if (layout.type == 'tabs') {
95-
return <TabsForm title={layout.title} content={content}/>;
95+
return <TabsForm layout={layout} content={content}/>;
9696
}
9797

9898
return <NormalForm title={layout.title} content={content}/>

src/components/groupComponents/Tabs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export default class Tabs extends Component {
2828
<Header title={layout.title}/>
2929
<Nav bsStyle="tabs" onSelect={this.handleSelect}>
3030
{
31-
layout.groups.map((item, index) => (
31+
layout.groups.map(({ title }, index) => (
3232
<NavItem eventKey={index}>
33-
{item.title}
33+
{title}
3434
</NavItem>
3535
))
3636
}

0 commit comments

Comments
 (0)