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

Commit

Permalink
Sidebar user profile link as a block
Browse files Browse the repository at this point in the history
  • Loading branch information
artkravchenko committed May 8, 2016
1 parent b3bd226 commit 65c6963
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
throttle
} from 'lodash';
import { connect } from 'react-redux';
import { Link } from 'react-router';

import { toggleUISidebar } from '../actions';

Expand Down Expand Up @@ -175,15 +176,15 @@ class Sidebar extends React.Component {
let currentUser;
if (routing && routing.locationBeforeTransitions.pathname.match(test)) {
currentUser = (
<NavigationItem enabled to={`/user/${username}`} className="sidebar__user">
<CurrentUser user={current_user.user} isLink={false} />
<NavigationItem className="sidebar__user" enabled to={`/user/${username}`}>
<CurrentUser isLink={false} user={current_user.user} />
</NavigationItem>
);
} else {
currentUser = (
<div className="navigation__item sidebar__user">
<CurrentUser user={current_user.user} />
</div>
<Link className="navigation__item sidebar__user" to={`/user/${username}`}>
<CurrentUser isLink={false} user={current_user.user} />
</Link>
);
}

Expand Down

0 comments on commit 65c6963

Please sign in to comment.