|
|
@@ -53,7 +53,7 @@ class SidebarNav extends React.Component {
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
- const { isAdmin, currentUsername } = this.props.appContainer;
|
|
|
+ const { isAdmin, currentUsername, isSharedUser } = this.props.appContainer;
|
|
|
const isLoggedIn = currentUsername != null;
|
|
|
|
|
|
const { PrimaryItem, SecondaryItem } = this;
|
|
|
@@ -61,8 +61,8 @@ class SidebarNav extends React.Component {
|
|
|
return (
|
|
|
<div className="grw-sidebar-nav d-flex flex-column justify-content-between pb-4">
|
|
|
<div className="grw-sidebar-nav-primary-container">
|
|
|
- <PrimaryItem id="custom" label="Custom Sidebar" iconName="code" />
|
|
|
- <PrimaryItem id="recent" label="Recent Changes" iconName="update" />
|
|
|
+ {!isSharedUser && <PrimaryItem id="custom" label="Custom Sidebar" iconName="code" />}
|
|
|
+ {!isSharedUser && <PrimaryItem id="recent" label="Recent Changes" iconName="update" />}
|
|
|
{/* <PrimaryItem id="tag" label="Tags" iconName="icon-tag" /> */}
|
|
|
{/* <PrimaryItem id="favorite" label="Favorite" iconName="icon-star" /> */}
|
|
|
</div>
|