-
Notifications
You must be signed in to change notification settings - Fork 0
/
todoitems.js
40 lines (38 loc) · 1.44 KB
/
todoitems.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import React from 'react'
function Todoitems({todoDetailedList}) {
return (
<div className="todo-detailed-view-opt">
<table className="table-pop">
<thead>
<tr>
<th className="date-table-width">Date</th>
<th className="time-table-width">Time</th>
<th className="plan-table-width">Plan</th>
<th className="result-table-width">Result</th>
</tr>
</thead>
<tbody>
{
todoDetailedList.map(content=>(
<tr key={content.id}>
<td>
<p className="pop-date">{content.date}</p>
</td>
<td>
<p className="pop-time">{content.time}</p>
</td>
<td>
<p className="list-items-pop">{content.content}</p>
</td>
<td>
<p className="result-pop">{(content.completed) ? "Completed" : "UnCompleted"}</p>
</td>
</tr>
))
}
</tbody>
</table>
</div>
)
}
export default Todoitems;