Revize d0fad67a
Přidáno uživatelem plundrichov před více než 4 roky(ů)
client/src/Nav.js | ||
---|---|---|
4 | 4 |
import * as api_fetch from './api' |
5 | 5 |
|
6 | 6 |
function Nav(props) { |
7 |
console.log(props.currentUser) |
|
8 | 7 |
return ( |
9 | 8 |
props.currentUser === undefined |
10 | 9 |
? |
... | ... | |
16 | 15 |
<Link className="link-nav" to="/"><h1>YOSO</h1></Link> |
17 | 16 |
<div className="profile-comp"> |
18 | 17 |
<img src={props.currentUser.photo} className="img-avatar" alt="profile_photo"></img> |
19 |
<h5>{props.currentUser.name}</h5>
|
|
18 |
<h2>{props.currentUser.name}</h2>
|
|
20 | 19 |
<ul> |
21 | 20 |
{props.currentUser.role === 'EMPLOYER' ? |
22 | 21 |
<li> |
Také k dispozici: Unified diff
re #58 fixed (nav.js, app.css)