From b1600adec47a04f60e1da07d94a3ed3906ff5aee Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 14 Jun 2018 16:44:21 -0400 Subject: starter files --- frontend/components/Item.js | 53 --------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 frontend/components/Item.js (limited to 'frontend/components/Item.js') diff --git a/frontend/components/Item.js b/frontend/components/Item.js deleted file mode 100644 index d6b339e..0000000 --- a/frontend/components/Item.js +++ /dev/null @@ -1,53 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import Link from 'next/link'; -import Title from './styles/Title'; -import AddToCart from './AddToCart'; -import DeleteItem from './DeleteItem'; -import formatMoney from '../lib/formatMoney'; -import ItemStyles from './styles/ItemStyles'; -import PriceTag from './styles/PriceTag'; - -class Item extends React.Component { - static propTypes = { - item: PropTypes.object.isRequired, - }; - - render() { - const item = this.props.item; - return ( - - {item.image && {item.title}} - - <Link - href={{ - pathname: '/item', - query: { id: item.id }, - }} - > - <a>{item.title}</a> - </Link> - - - {formatMoney(item.price)} - -

{item.description}

- -
- - Edit ✏️ - - - -
-
- ); - } -} - -export default Item; -- cgit v1.3