|
|
|
@ -31,7 +31,9 @@ export default function Items({items: _items}){
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<h2>Items</h2>
|
|
|
|
|
<p>
|
|
|
|
|
<Link href="/admin/items/new"><a>Create New Item</a></Link>
|
|
|
|
|
</p>
|
|
|
|
|
<Table
|
|
|
|
|
columns={[
|
|
|
|
|
{name: 'Name', extractor: item => item.name},
|
|
|
|
@ -50,7 +52,8 @@ export default function Items({items: _items}){
|
|
|
|
|
</span>
|
|
|
|
|
)}
|
|
|
|
|
]}
|
|
|
|
|
rows={items}
|
|
|
|
|
// Map in an id property so the table can use array.map
|
|
|
|
|
rows={items.map(item => ({id: item.uuid, ...item}))}
|
|
|
|
|
/>
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
|