query - basic print workflow - messages on client

This commit is contained in:
Jan Prochazka
2020-04-05 20:48:04 +02:00
parent 3df4e9b7dc
commit 72375ec635
13 changed files with 315 additions and 24 deletions

View File

@@ -0,0 +1,24 @@
import React from 'react';
export default function MessagesView({ items }) {
return (
<table>
<tr>
<th>Number</th>
<th>Message</th>
<th>Time</th>
<th>Procedure</th>
<th>Line</th>
</tr>
{items.map((row, index) => (
<tr key={index}>
<td>{index + 1}</td>
<td>{row.message}</td>
<td>{row.time}</td>
<td>{row.procedure}</td>
<td>{row.line}</td>
</tr>
))}
</table>
);
}