Skip to content

Commit

Permalink
Fix React warning by correctly wrapping the new team modal trigger bu…
Browse files Browse the repository at this point in the history
…tton into a NavItem
  • Loading branch information
jnugh committed Feb 18, 2017
1 parent 4dcbbb1 commit 29b176b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/browser/components/TabBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,25 @@ class TabBar extends React.Component {
width: '40px',
color: '#999',
fontWeight: 'bold',
margin: '6px 0 0',
margin: '0',
borderRadius: '2px 2px 0 0',
outline: 'none'
};

return (
<Button
id='tabBarAddNewTeam'
onClick={this.props.onAddServer}
style={tabButton}
className='btn-tabButton'
title='Add new server'
<NavItem
className='buttonTab'
>
{'+'}
</Button>
<Button
id='tabBarAddNewTeam'
onClick={this.props.onAddServer}
style={tabButton}
className='btn-tabButton'
title='Add new server'
>
{'+'}
</Button>
</NavItem>
);
}
}
Expand Down
7 changes: 7 additions & 0 deletions src/browser/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@
padding: 0 15px;
}

.nav-tabs>li.buttonTab>a {
border: none;
background: transparent;
margin-left: 1px; /*Has no border and would be placed above the last item's border due to it's margin-right: -1px */
padding: 0;
margin-bottom: 1px;
}

.has-error .control-label,
.has-error .help-block {
Expand Down

0 comments on commit 29b176b

Please sign in to comment.