Revize 5bedee9e
Přidáno uživatelem plundrichov před více než 4 roky(ů)
client/src/Overview.js | ||
---|---|---|
4 | 4 |
|
5 | 5 |
const OffsAvailable = (props) => { |
6 | 6 |
|
7 |
return ( |
|
7 |
return props.currentUser === undefined ? null : (
|
|
8 | 8 |
<div> |
9 | 9 |
<div className="side-content"> |
10 | 10 |
<div className="side-board column"> |
... | ... | |
19 | 19 |
<th className="th-left">Name</th> |
20 | 20 |
<th>Sick Days</th> |
21 | 21 |
<th>Holiday</th> |
22 |
</tr> |
|
22 |
</tr>
|
|
23 | 23 |
<tr> |
24 |
<td>{props.userName.name}</td>
|
|
25 |
<td className="td-center">{props.userName.takenSickday + '/' + props.userName.sickday}</td>
|
|
26 |
<td className="td-center">{props.userName.holiday}</td>
|
|
24 |
<td>{props.currentUser.name}</td>
|
|
25 |
<td className="td-center">{props.currentUser.takenSickday + '/' + props.currentUser.sickday}</td>
|
|
26 |
<td className="td-center">{props.currentUser.holiday}</td>
|
|
27 | 27 |
</tr> |
28 | 28 |
</tbody> |
29 | 29 |
</table> |
30 |
</div> |
|
30 | 31 |
</div> |
31 | 32 |
</div> |
32 | 33 |
</div> |
33 |
</div> |
|
34 | 34 |
); |
35 | 35 |
} |
36 | 36 |
|
Také k dispozici: Unified diff
re #58 Rewrited client app to React #58 // yoso internal app // in progress #60 // fixed