From cd0b07b3adb36fb5ec098f9e511ab45d774fee7b Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Tue, 30 Jan 2018 12:41:01 -0500 Subject: Move to Prisma Backend --- frontend/components/Item.js | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 frontend/components/Item.js (limited to 'frontend/components/Item.js') diff --git a/frontend/components/Item.js b/frontend/components/Item.js new file mode 100644 index 0000000..1b47fcf --- /dev/null +++ b/frontend/components/Item.js @@ -0,0 +1,61 @@ +import styled from 'styled-components'; +import slugify from 'slugify'; +import { Link } from '../routes'; +import AddToCart from './AddToCart'; +import makeImage from '../lib/image'; +import TakeMyMoney from './TakeMyMoney'; +import formatMoney from '../lib/formatMoney'; + +const Item = styled.div` + background: #f3f3f3; + padding: 5px; + img { + width: 100%; + } +`; + +const ItemComponent = ({ item }) => ( + + {item.image ? {item.title} : null} +

+ + {item.title} + +

+ +

{item.description}

+ {/* { + + + Edit ✏️ + + + } */} + + + + + + + +
+); + +export default ItemComponent; -- cgit v1.3