1 |
c46ffe2f
|
plundrichov
|
import React from 'react';
|
2 |
|
|
import './App.css';
|
3 |
|
|
|
4 |
1865a0be
|
Pavel Fidransky
|
export default function OffsAvailable(props) {
|
5 |
c46ffe2f
|
plundrichov
|
|
6 |
1865a0be
|
Pavel Fidransky
|
if (props.currentUser === undefined) {
|
7 |
|
|
return null;
|
8 |
|
|
}
|
9 |
c46ffe2f
|
plundrichov
|
|
10 |
1865a0be
|
Pavel Fidransky
|
return (
|
11 |
|
|
<div>
|
12 |
|
|
<div className="side-content">
|
13 |
|
|
<div className="side-board column">
|
14 |
|
|
<div className="side-board-heading row">
|
15 |
|
|
<h3>Overview</h3>
|
16 |
|
|
</div>
|
17 |
|
|
<div className="underline-1"></div>
|
18 |
|
|
<div className="side-board-items column">
|
19 |
|
|
<table border = "0">
|
20 |
|
|
<tbody>
|
21 |
|
|
<tr>
|
22 |
|
|
<th className="th-left">Name</th>
|
23 |
|
|
<th>Sick Days</th>
|
24 |
|
|
<th>Holiday</th>
|
25 |
|
|
</tr>
|
26 |
|
|
<tr>
|
27 |
|
|
<td>{props.currentUser.name}</td>
|
28 |
|
|
<td className="td-center">{props.currentUser.takenSickday + '/' + props.currentUser.sickday}</td>
|
29 |
|
|
<td className="td-center">{props.currentUser.holiday}</td>
|
30 |
|
|
</tr>
|
31 |
|
|
</tbody>
|
32 |
|
|
</table>
|
33 |
|
|
</div>
|
34 |
|
|
</div>
|
35 |
c46ffe2f
|
plundrichov
|
</div>
|
36 |
1865a0be
|
Pavel Fidransky
|
</div>
|
37 |
|
|
);
|
38 |
c46ffe2f
|
plundrichov
|
}
|