Review Fixes

This commit is contained in:
joep van der velden
2020-10-21 22:03:55 +02:00
parent ee644f7a6a
commit e98d19efde
2 changed files with 34 additions and 36 deletions
+33 -35
View File
@@ -57,52 +57,50 @@ export const TachyonArrayContent = (props, context) => {
} = data;
return (
<Section>
<Section title="Logged Explosions">
<Flex>
<Flex.Item>
<Section label="Logged Explosions">
<Table m="0.5rem">
<Table.Row header>
<Table m="0.5rem">
<Table.Row header>
<Table.Cell>
Time
</Table.Cell>
<Table.Cell>
Epicenter
</Table.Cell>
<Table.Cell>
Actual Size
</Table.Cell>
<Table.Cell>
Theoretical Size
</Table.Cell>
</Table.Row>
{records.map(a => (
<Table.Row key={a.index}>
<Table.Cell>
Time
{a.logged_time}
</Table.Cell>
<Table.Cell>
Epicenter
{a.epicenter}
</Table.Cell>
<Table.Cell>
Actual Size
{a.actual_size_message}
</Table.Cell>
<Table.Cell>
Theoretical Size
{a.theoretical_size_message}
</Table.Cell>
<Table.Cell>
<Button.Confirm
icon="trash"
content="Delete"
color="bad"
onClick={() => act('delete_record', {
'index': a.index,
})} />
</Table.Cell>
</Table.Row>
{records.map(a => (
<Table.Row key={a.index}>
<Table.Cell>
{a.logged_time}
</Table.Cell>
<Table.Cell>
{a.epicenter}
</Table.Cell>
<Table.Cell>
{a.actual_size_message}
</Table.Cell>
<Table.Cell>
{a.theoretical_size_message}
</Table.Cell>
<Table.Cell>
<Button.Confirm
icon="trash"
content="Delete"
color="bad"
onClick={() => act('delete_record', {
'index': a.index,
})} />
</Table.Cell>
</Table.Row>
))}
</Table>
</Section>
))}
</Table>
</Flex.Item>
</Flex>
</Section>
File diff suppressed because one or more lines are too long