Add tests for tabs

This commit is contained in:
Yuya Ochiai
2015-12-23 20:53:54 +09:00
parent 62b6e4c51b
commit 7fb2dc9cb6
2 changed files with 43 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ var MainPage = React.createClass({
}
},
visibleStyle: function(visible) {
var visibility = visible ? 'initial' : 'hidden';
var visibility = visible ? 'visible' : 'hidden';
return {
position: 'absolute',
top: 42,
@@ -62,7 +62,7 @@ var MainPage = React.createClass({
{ thisObj.state.unreadCounts[index] }
</Badge>);
}
return (<NavItem eventKey={ index }>
return (<NavItem className="teamTabItem" id={ 'teamTabItem' + index } eventKey={ index }>
{ team.name }
{ ' ' }
{ badge }