diff --git a/pages/admin/items/index.js b/pages/admin/items/index.js
index 341bd8f..5a2ccdc 100644
--- a/pages/admin/items/index.js
+++ b/pages/admin/items/index.js
@@ -31,7 +31,9 @@ export default function Items({items: _items}){
return (
<>
Items
- Create New Item
+
+ Create New Item
+
item.name},
@@ -50,7 +52,8 @@ export default function Items({items: _items}){
)}
]}
- rows={items}
+ // Map in an id property so the table can use array.map
+ rows={items.map(item => ({id: item.uuid, ...item}))}
/>
>
)
diff --git a/styles/layout.css b/styles/layout.css
index 20fb2af..e25fa02 100644
--- a/styles/layout.css
+++ b/styles/layout.css
@@ -40,6 +40,13 @@ main {
font-family: 'Cormorant Infant',serif;
}
+main > p {
+ width: calc(100% - 100px);
+ max-width: 800px;
+ margin-left: auto;
+ margin-right: auto;
+}
+
.cardContainer{
margin-left: auto;
margin-right: auto;