add wristband path history info

This commit is contained in:
Jay
2017-04-11 16:48:31 +08:00
parent 0cdbd319c8
commit 64ad807310
12 changed files with 1342 additions and 813 deletions
@@ -1,13 +1,14 @@
import React from 'react';
import { Table, Button } from 'semantic-ui-react';
const ListItem = ({ i18n, data, delWristband, editWristband }) => {
const ListItem = ({ i18n, data, delWristband, editWristband, showPathInfo }) => {
return (
<Table.Row>
<Table.Cell>
<Button content="Edit" basic onClick={()=>{editWristband(1, data)}} />
<Button content="Delete" basic onClick={()=>{delWristband(data.uid)}} />
<Button content="地點紀錄" basic onClick={()=>{showPathInfo(data.mac, data.name)}} />
</Table.Cell>
<Table.Cell>{data.mac}</Table.Cell>
<Table.Cell>{data.name}</Table.Cell>