don't show profile tab if user is logged out

This commit is contained in:
Kit Westneat
2018-04-12 17:52:49 -04:00
parent 87ffa45050
commit e5a2152cfd
2 changed files with 7 additions and 3 deletions
@@ -16,6 +16,8 @@ import cn from 'classnames';
export default class Embed extends React.Component {
getTabs() {
if (!this.props.currentUser) return false;
const tabs = [
<Tab
key="stream"
@@ -16,9 +16,11 @@ class ExtendableTabPanel extends React.Component {
} = this.props;
return (
<div {...rest}>
<TabBar activeTab={activeTab} onTabClick={setActiveTab} sub={sub}>
{tabs}
</TabBar>
{tabs && (
<TabBar activeTab={activeTab} onTabClick={setActiveTab} sub={sub}>
{tabs}
</TabBar>
)}
{loading ? (
<div className={styles.spinnerContainer}>
<Spinner />