query result shown

This commit is contained in:
Jan Prochazka
2020-04-10 10:47:54 +02:00
parent 3bc6f60f75
commit 8be7c0aa6b
11 changed files with 121 additions and 73 deletions

View File

@@ -1,8 +1,13 @@
import React from 'react';
import styled from 'styled-components';
const StyledTable = styled.table`
flex: 1;
`;
export default function MessagesView({ items }) {
return (
<table>
<StyledTable>
<tr>
<th>Number</th>
<th>Message</th>
@@ -19,6 +24,6 @@ export default function MessagesView({ items }) {
<td>{row.line}</td>
</tr>
))}
</table>
</StyledTable>
);
}