Added teams link

This commit is contained in:
Gregory Schier committed 2016-11-23 12:10:53 -08:00
1 parent c5881e258a
commit e8e319023f
2 files changed
+6 -5

No files matched your search

+3 -3
View File
@@ -24,13 +24,13 @@ class Link extends Component {
trackEvent('Link', 'Click', href)
}
render () {
const {button, href, children, ...other} = this.props;
const {onClick, button, href, children, ...other} = this.props;
return button ? (
<button onClick={this._boundHandleClick} {...other}>
<button onClick={onClick || this._boundHandleClick} {...other}>
{children}
</button>
) :(
<a href={href} onClick={this._boundHandleClick} {...other}>
<a href={href} onClick={onClick || this._boundHandleClick} {...other}>
{children}
</a>
)
@@ -11,6 +11,7 @@ import {getAppVersion} from '../../../common/constants';
import {showModal} from '../modals/index';
import {TAB_INDEX_EXPORT} from '../modals/SettingsModal';
import {trackEvent} from '../../../analytics/index';
import Link from '../base/Link';
class WorkspaceDropdown extends Component {
async _promptUpdateName () {
@@ -120,8 +121,8 @@ class WorkspaceDropdown extends Component {
<i className="fa fa-cog"></i> Settings
<DropdownHint char=","></DropdownHint>
</DropdownItem>
<DropdownItem onClick={e => showModal(SettingsModal, TAB_INDEX_EXPORT)}>
<i className="fa fa-users"></i> For Team
<DropdownItem buttonClass={Link} href="https://insomnia.rest/teams/" button={true}>
<i className="fa fa-users"></i> For Teams
</DropdownItem>
</Dropdown>
)