Profile: component init

This commit is contained in:
SamR1
2017-12-31 18:43:24 +01:00
parent 1a888cd8f5
commit 7f1fa99429
6 changed files with 71 additions and 5 deletions

View File

@ -58,7 +58,14 @@ function NavBar (props) {
)}
{props.user.isAuthenticated && (
<li className="nav-item">
<a className="nav-link">{props.user.username}</a>
<Link
className="nav-link"
to={{
pathname: '/profile',
}}
>
{props.user.username}
</Link>
</li>
)}
{props.user.isAuthenticated && (