mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-26 16:49:11 -04:00
Added teams link
This commit is contained in:
1 parent
c5881e258a
commit
e8e319023f
2 files changed
+6
-5
No files matched your search
@@ -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>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user