Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Add sidebar menu to user profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
agat committed Feb 9, 2017
1 parent e515db8 commit 4f29037
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion src/pages/base/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,55 @@ const BaseUserPage = (props) => {
{children}
</div>
</PageContent>
<SidebarAlt />
<SidebarAlt>
<div className="tabs">
<div className="short_post short_post-spacing">
<IndexLink
activeClassName="tabs__link-active color-dark_blue"
className="tabs__link"
to={`/user/${user.get('username')}`}
>
Posts
</IndexLink>
</div>
{showLikesLink &&
<div className="short_post short_post-spacing">
<PageContentLink
activeClassName="tabs__link-active color-dark_blue"
className="tabs__link"
to={`/user/${user.get('username')}/likes`}
visible
>
Likes
</PageContentLink>
</div>
}
{showFavouritesLink &&
<div className="short_post short_post-spacing">
<PageContentLink
activeClassName="tabs__link-active color-dark_blue"
className="tabs__link"
to={`/user/${user.get('username')}/favorites`}
visible
>
Favorites
</PageContentLink>
</div>
}
{showBioLink &&
<div className="short_post short_post-spacing">
<PageContentLink
activeClassName="tabs__link-active color-dark_blue"
className="tabs__link"
to={`/user/${user.get('username')}/bio`}
visible
>
Bio
</PageContentLink>
</div>
}
</div>
</SidebarAlt>
</PageBody>
</PageMain>
</Page>
Expand Down

0 comments on commit 4f29037

Please sign in to comment.