From 77db326b950bf78382ac255f80826737612b10ce Mon Sep 17 00:00:00 2001 From: Jared Scheib Date: Fri, 10 Nov 2017 02:26:38 -0800 Subject: [PATCH] Revert user nav block to exclude Manage Users & Manage Organizations --- ui/src/side_nav/components/UserNavBlock.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/ui/src/side_nav/components/UserNavBlock.js b/ui/src/side_nav/components/UserNavBlock.js index c621e00a6..15c2472e4 100644 --- a/ui/src/side_nav/components/UserNavBlock.js +++ b/ui/src/side_nav/components/UserNavBlock.js @@ -1,10 +1,7 @@ import React, {PropTypes, Component} from 'react' -import {Link} from 'react-router' import {connect} from 'react-redux' import {bindActionCreators} from 'redux' -import Authorized, {ADMIN_ROLE, SUPERADMIN_ROLE} from 'src/auth/Authorized' - import classnames from 'classnames' import {meChangeOrganizationAsync} from 'shared/actions/auth' @@ -21,7 +18,6 @@ class UserNavBlock extends Component { links: {external: {custom: customLinks}}, me, me: {currentOrganization, organizations, roles}, - sourcePrefix, } = this.props // TODO: find a better way to glean this information. @@ -43,19 +39,6 @@ class UserNavBlock extends Component {
{me.name}
- - - Manage Organizations - - - - - Manage Users - - Logout @@ -134,7 +117,6 @@ UserNavBlock.propTypes = { role: string, }).isRequired, meChangeOrganization: func.isRequired, - sourcePrefix: string.isRequired, // TODO: remove this prop once we move /users & /organizations above sources } const mapDispatchToProps = dispatch => ({