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

Commit

Permalink
Make user page's links fully clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
artkravchenko committed Mar 18, 2017
1 parent 15a3432 commit 27456b8
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 78 deletions.
1 change: 1 addition & 0 deletions src/less/blocks/short_post.less
@@ -1,6 +1,7 @@
.short_post {
background: @color__background;
padding: 13px;
display: block;

&-spacing {
margin-top: 1px;
Expand Down
70 changes: 31 additions & 39 deletions src/pages/base/user-without_header.js
Expand Up @@ -88,50 +88,42 @@ const BaseUserPageWithoutHeader = (props) => {
</PageContent>
<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>
<IndexLink
activeClassName="color-dark_blue"
className="short_post short_post-spacing"
to={`/user/${user.get('username')}`}
>
Posts
</IndexLink>
{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>
<PageContentLink
activeClassName="color-dark_blue"
className="short_post short_post-spacing"
to={`/user/${user.get('username')}/likes`}
visible
>
Likes
</PageContentLink>
}
{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>
<PageContentLink
activeClassName="color-dark_blue"
className="short_post short_post-spacing"
to={`/user/${user.get('username')}/favorites`}
visible
>
Favorites
</PageContentLink>
}
{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>
<PageContentLink
activeClassName="color-dark_blue"
className="short_post short_post-spacing"
to={`/user/${user.get('username')}/bio`}
visible
>
Bio
</PageContentLink>
}
</div>
</SidebarAlt>
Expand Down
70 changes: 31 additions & 39 deletions src/pages/base/user.js
Expand Up @@ -162,50 +162,42 @@ const BaseUserPage = (props) => {
</PageContent>
<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>
<IndexLink
activeClassName="color-dark_blue"
className="short_post short_post-spacing"
to={`/user/${user.get('username')}`}
>
Posts
</IndexLink>
{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>
<PageContentLink
activeClassName="color-dark_blue"
className="short_post short_post-spacing"
to={`/user/${user.get('username')}/likes`}
visible
>
Likes
</PageContentLink>
}
{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>
<PageContentLink
activeClassName="color-dark_blue"
className="short_post short_post-spacing"
to={`/user/${user.get('username')}/favorites`}
visible
>
Favorites
</PageContentLink>
}
{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>
<PageContentLink
activeClassName="color-dark_blue"
className="tabs__link short_post short_post-spacing"
to={`/user/${user.get('username')}/bio`}
visible
>
Bio
</PageContentLink>
}
</div>
</SidebarAlt>
Expand Down

0 comments on commit 27456b8

Please sign in to comment.